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