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 (32454,44854,18279,44766,44674,17657,44875,17771,44669,18042,18353,44868,44762,45515,18719,18446,45051,44869,30986,17904,44863,18688,45042,45072,13425,44767,5410,9341,19078,45177,18572,17278,44739,44856,44858,44689,45229,18427,6862,45262,44837,45518,44687,17835,45043,13,18430,44866,44851,37267,24412,4765,44711,17237,39676,16935,18301,22509,17009,44853,44867,17092,37057,18286,5993,5259,44845,14402,18237,17703)
Unknown column 'np.person' in 'where clause'