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 (45180,18427,18996,5410,44894,24438,18172,31354,10402,18794,18185,45515,44849,8753,44765,18430,13425,17755,18719,28530,18446,37267,44865,5993,17771,44767,13988,6862,44873,45517,45262,18894,44861,13922,17278,44671,6875,44775,18237,44868,44768,45042,17335,45518,17527,44875,17657,44711,44884,18688,5388,45286,22509,17009,44685,6782,17839,24441,14622,44853,44851,6609,44687,44858,44689,18650,44870,17092,45277,18279)
Unknown column 'np.person' in 'where clause'