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