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