Error
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'groups INNER JOIN groups_chat_messages ON groups.last_message_id = groups_chat_m' at line 1