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