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