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 (44711,45567,44856,3883,44739,45346,43800,13425,5388,44870,44873,44687,17756,18794,18894,44766,17351,17839,44861,18353,44689,44765,6782,14402,18719,17848,17492,45286,44867,6609,3,44866,5259,9341,18652,44849,4686,30963,44835,17092,17703,30986,45229,28530,44848,32454,16885,5410,14622,17835,45042,44854,44869,44836,18427,24412,45177,45072,44868,16935,17009,18900,13988,44865,6875,18446,44762,19057,18172,45043)
Unknown column 'np.person' in 'where clause'