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