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