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_competitions.ch_range > 0 AND alp_cont_arbs.category > 0' at line 3
SELECT alp_competitions.id AS cid, alp_competitions.ch_range AS rng, alp_cont_arbs.post AS pst, alp_cont_arbs.category AS ctg FROM alp_competitions INNER JOIN alp_cont_arbs ON alp_competitions.id = alp_cont_arbs.host_element_id WHERE alp_cont_arbs.arbiter = AND alp_competitions.ch_range > 0 AND alp_cont_arbs.category > 0