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