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