Qry Err. SELECT 'X' FROM counter WHERE userIp = '54.81.70.9' AND LEFT(writeday, 13) = '2016-06-30 05'