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 'and c.sequence>0 and t.sequence>0 order by c.sequence desc' at

select * from p_title t, p_category c where t.title_id = c.title_id and t.title_id = and c.sequence>0 and t.sequence>0 order by c.sequence desc

[TEP STOP]