Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON = (SELECT FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE = AND nyc.category = 310 AND nyp.person = np.person AND = AND = AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = AND nc.category = 310 AND = AND np.person = AND IN (37267,14402,44531,17009,44764,44853,17848,18719,44875,18652,17278,45517,17335,18648,44765,8753,45421,6862,44869,22509,13425,18353,16885,18427,24411,45516,36472,44855,18446,44866,44863,44685,30963,18185,18286,32454,9341,45518,44854,17839,44849,44867,5410,44775,45042,17351,45277,45286,44762,17492,44873,24412,44689,6782,24438,45043,44865,24441,4765,18042,45072,45515,5259,18996,45561,44669,44766,6875,44848,17756)
Unknown column 'np.person' in 'where clause'