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