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_poss IN (2,4,9,19,23,36,45,50,52,57,89,105,113) and p_bnum=6 ' at line 10