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 (22509,13,44868,45567,45346,44870,45517,44837,18996,44768,44836,44866,44845,44861,44765,45421,19078,18301,17756,9341,44671,30963,44685,18794,17755,18185,44711,44875,43800,44865,44869,18719,31354,17527,45516,30986,44848,17492,18900,45042,17703,28530,17657,17009,18237,44854,37267,4686,14622,5993,44855,37057,44766,3883,39676,45177,18427,44853,18650,3,4765,24441,17237,45518,13988,17114,45043,18279,44863,13922)
Unknown column 'np.person' in 'where clause'