Error on 226. 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 'and c.my_index=b.event_id and b.hotel_id=a.my_index and b.active!='no' and '2013' at line 1