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