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