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