MySQL Query Error: SET NAMES 'cp1251'[Unknown system variable 'NAMES']

DB query error.
Please try later.