Added start and end delimiters to mysql query