You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'p_rank<3 and p_bnum IN (2,4,5,6,7,8) and p_poss IN (2,4,9,19,23,36,45,50,52,57,' at line 10