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 pick1 LIKE '%%%' or status >= '0' and active = 2 and year = and pick2 LIK' at line 1