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='3c7e1bb334def0fb7c6ca07eec33874d'' at line 1