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='63297ea351bf25600430d9e0bd6d4a7b'' at line 1