Fixed SQL error in product filter module (#1028)