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