Select t.*, p.* from tag_pages as t inner join tag_page_texto_rel as p
on t.id = p.id_tag_page where t.id = and p.pos='principio'


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 'and p.pos='principio'' at line 2