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