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