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 (45286,16935,17703,44762,10402,17527,44867,17278,9341,44739,18427,19057,44764,18172,37057,44863,18719,14622,18652,18430,17755,8753,17839,17009,17771,37267,17492,17848,17335,44775,45262,18286,45180,44853,17556,44875,44854,44711,18279,13,44767,44669,5259,3,28530,45561,44765,44873,17092,44858,44861,44837,18894,44531,18353,5410,17657,45567,18794,44870,44869,18688,44766,17351,14402,44884,45421,44865,18996,45043)
Unknown column 'np.person' in 'where clause'