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 (6875,44878,18981,44861,18172,44858,44739,44867,17703,44764,18353,37267,13922,19078,5259,45286,43800,17114,18650,44711,18042,17904,36472,18894,17237,24438,5410,30135,44865,3883,28313,10402,17835,45515,17492,5993,24441,44863,45517,3,30986,17839,44669,31354,44853,44767,45072,44689,17092,28530,4686,44856,6782,18996,16935,17848,18719,24412,18301,44845,44884,44875,39676,44835,22509,9341,45262,45421,45229,44855)
Unknown column 'np.person' in 'where clause'