An Error Was Encountered

Error Number: 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 6

SELECT * FROM (`ptc_directory`) JOIN `ptc_catid_to_dirid` ON ptc_directory.ID = ptc_catid_to_dirid.dirid WHERE ptc_catid_to_dirid.catid = '19' AND ptc_catid_to_dirid.dirid IN (select dirid from ptc_catid_to_dirid where catid=1 ) AND ptc_catid_to_dirid.dirid IN (select dirid from ptc_catid_to_dirid where catid= )