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 (10402,44689,44873,4765,18279,18172,17904,45516,17771,19057,44836,17092,45567,30986,44878,6609,19078,37267,6875,45286,44851,18996,18688,18894,18652,44849,44835,16935,44837,17492,45177,6862,13425,44845,18237,18427,18042,44853,8753,44671,44711,17601,44848,44861,4686,17351,45051,39676,44856,31354,18719,17335,44863,44687,13,6782,17981,44669,18430,45180,18301,44767,45517,17009,17527,24412,44762,5410,18900,18353)
Unknown column 'np.person' in 'where clause'