syntax error: SELECT COUNT(*) AS yesterdayrec FROM counter WHERE tm>'1542474000' and tm<'1542560400'