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 (45229,45277,10402,44837,44875,5259,44866,44851,18572,13425,44669,18446,13922,5410,18996,44849,13988,17835,18900,45561,44711,45262,17009,17527,17703,44685,43800,8753,18427,24438,17657,18353,17981,45567,18719,44845,45421,45180,14622,17237,18650,44863,6782,30963,17492,28530,4765,44853,44867,44674,17335,18430,18894,39676,18688,44854,30986,17839,44687,44868,24411,3883,44870,44767,5388,18042,44861,32454,9341,17904)
Unknown column 'np.person' in 'where clause'