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