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 (34194,17114,18279,45515,43800,44894,44870,44835,18427,13425,18042,6875,44866,6782,45277,44689,9341,18981,45286,18650,24438,14622,45421,17492,45346,44869,18900,18353,31354,45517,44878,28313,45043,17904,44767,44685,44711,44674,19078,45180,44873,44671,13988,45561,44854,44640,44775,18446,44669,45262,17009,37267,17092,44855,44856,44865,45516,14402,4765,44853,45229,17835,28530,19057,44837,5993,44764,44762,18185,44858)
Unknown column 'np.person' in 'where clause'