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 'AND basketSession='6ca709bc5092df62cac97e507989a3c8'' at line 1