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 (18996,34194,44854,45567,24411,44848,45229,44870,18430,17492,28313,45516,45180,18650,44868,28530,17351,44768,45518,18042,6609,44674,44669,5993,13922,4765,44775,3883,6875,8753,10402,18446,44853,44765,18427,18353,44739,18279,44865,45043,18572,44711,32454,17703,44866,44869,44640,45515,18237,17278,6782,45051,45421,44837,44835,24438,45072,44863,44867,45286,45517,44875,45346,45177,17755,17981,44764,14402,17657,44884)
Unknown column 'np.person' in 'where clause'