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 (45043,17835,45286,44768,17755,44848,17904,10402,44674,45517,18301,44851,18279,18688,18237,18353,3,18981,14402,13425,45421,5993,24412,44853,18185,28313,5259,45516,5388,17703,19057,44856,18286,36472,45180,17009,13922,44765,13,18430,18427,44875,44863,39676,44689,14622,44845,44836,3883,22509,44861,44858,44854,17278,44866,17237,18446,44711,45262,9341,18996,17351,17756,44865,45177,18900,44739,37267,44868,44849)
Unknown column 'np.person' in 'where clause'