1064 - 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 '' at line 1

select m.content from messages m inner join messages_products mp on m.id = mp.messages_id and m.scope = 'p' where m.deleted_at is null and m.active = 1 and m.site = 'PU' and mp.products_id =