Qry Err. SELECT 'X' FROM counter WHERE userIp = '54.166.180.246' AND LEFT(writeday, 13) = '2016-07-29 07'