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