Hi. I am trying to display just the entries which have a value of 500 or less in 'field_id_8'.When I test this code it returns all of the entries, not entries with a value of 500 or less.SELECT titles.entry_id, titles.title, data.field_id_18, data.field_id_10 AS tour_excerpt, data.field_id_8 AS tour_price, titles.url_title, assets_entries.asset_id, SUBSTR( assets.file_path, 12 ) as file_pathFROM exp_channel_titles AS titlesLEFT JOIN exp_channel_data AS data ON data.entry_id = titles.entry_idLEFT JOIN exp_assets_entries AS assets_entries ON assets_entries.entry_id = data.entry_idLEFT JOIN exp_assets AS assets ON assets_entries.asset_id = assets.asset_idWHERE titles.channel_id = '4'AND assets_entries.field_id = '84'AND data.field_id_8 <= '500'GROUP BY titles.entry_id
Can anyone see anything wrong with my code?Thank you!