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 (18237,22509,45567,13,44687,36472,43800,44764,44837,28530,3,45042,44640,17114,45515,37057,4765,18572,18286,18894,45043,17351,17009,17771,44768,44866,44875,44669,16935,17756,45286,44767,19078,3883,18719,44762,17237,44884,18794,45180,44765,18652,44854,44868,18430,17601,17335,45561,45421,30135,44531,18427,44851,37267,45518,18996,32454,44849,44745,44711,6782,30986,44766,5259,14622,44836,44873,45072,44848,45277)
Unknown column 'np.person' in 'where clause'