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