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='6d6e81a84b992d1dde9015c424c20f91'' at line 1