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 (18427,13,24412,17904,44689,16935,18572,19078,43800,18042,44861,19057,32454,24411,45286,45229,18894,30963,44851,44767,17771,44687,37267,44845,44854,45567,44765,17601,45518,45180,18688,4765,22509,18185,18172,44762,34194,37057,18446,13988,44868,45517,44869,18650,10402,17351,44884,45277,17114,44849,18286,9341,44711,44640,44671,6609,17092,45346,45516,44875,17009,44870,30135,44836,6782,36472,44856,17237,17848,18279)
Unknown column 'np.person' in 'where clause'