SELECT SQL_CALC_FOUND_ROWS *, 'customer_rates' as rate_table_name, (SELECT ratecard_for FROM ratecard WHERE ratecard.ratecard_id = customer_rates.ratecard_id) AS ratecard_for FROM customer_rates WHERE ratecard_id IN (SELECT ratecard_id FROM tariff_ratecard_map WHERE tariff_id = 'USA4635') AND prefix = '1' ORDER BY id DESC LIMIT 1000
Error Number: 42S22/1054
Unknown column 'id' in 'order clause'
SELECT SQL_CALC_FOUND_ROWS *, 'customer_rates' as rate_table_name, (SELECT
ratecard_for
FROMratecard
WHEREratecard
.ratecard_id
=customer_rates
.ratecard_id
) AS ratecard_for FROMcustomer_rates
WHEREratecard_id
IN (SELECTratecard_id
FROMtariff_ratecard_map
WHEREtariff_id
= 'USA4635') ANDprefix
= '1' ORDER BYid
DESC LIMIT 1000Filename: models/Rate_mod.php
Line Number: 324