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='23bb0418c5c9c9b4669747ee1f2354b1'' at line 1