[#61435466] Fixed SQL syntax errors