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 (19057,18172,45177,45346,45180,44836,36472,5388,18652,44766,44884,13,18794,13922,44765,18446,44531,18894,45262,13988,44863,6875,45051,45421,17981,17527,44878,44764,5410,43800,44767,5993,44870,18042,44711,44869,30986,44868,44837,18237,17556,44739,17755,14402,18279,31354,18427,44873,14622,45286,44867,39676,44854,44687,44689,44865,44849,18430,45567,44845,44669,9341,17835,18353,24441,30135,17756,10402,18301,17492)
Unknown column 'np.person' in 'where clause'