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