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