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 'AND alp_asem_parties.category = 1 ORDER BY alp_arb_seminars.date DESC LIMI' at line 6

SELECT alp_arb_seminars.page_title, alp_arb_seminars.date, alp_asem_post.post, alp_asem_parties.post AS p, alp_arb_seminars.rank, alp_ref_scores.id AS qs, alp_ref_scores.full AS score, alp_arb_seminars.qtopic FROM alp_arb_seminars INNER JOIN alp_asem_parties ON alp_arb_seminars.id = alp_asem_parties.asem INNER JOIN alp_asem_post ON alp_asem_post.id = alp_asem_parties.post LEFT OUTER JOIN alp_ref_scores ON alp_asem_parties.score = alp_ref_scores.id WHERE alp_asem_parties.party = AND alp_asem_parties.category = 1 ORDER BY alp_arb_seminars.date DESC LIMIT 5