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