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