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