Query Failed: SELECT SQL_CALC_FOUND_ROWS s.*, e.AllotmentApplied FROM accm_sys as s INNER JOIN accm_ext as e ON s.AccmId=e.AccmId WHERE SiteId=82 AND Category=1 AND PriceRange=1 AND Status=5 AND s.AccmId NOT IN(366) AND s.Status <>8 ORDER BY RAND() LIMIT 0, 6
Server says :1052:Column 'SiteId' in where clause is ambiguous