SQL ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'and message.GroupsId=groups.GroupsId and message.IsValidate='1'' at line 1


Query:
select message.*,groups.GroupsName from message,groups where message.MessageId= and message.GroupsId=groups.GroupsId and message.IsValidate='1'