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