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