SQL query forming is wrong
SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts WHERE 1=1 AND 0 = 1 AND wp_posts.post_type="product" AND (wp_posts.post_status="publish") GROUP BY wp_posts.ID ORDER BY wp_posts.post_date DESC LIMIT 0, 1
Here 1=1 AND 0 = 1