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