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 (44762,44640,18981,13988,17601,45043,18301,17904,18185,30986,44866,24412,18996,13922,18688,44674,44745,45421,44669,24441,44687,44851,44766,17527,44858,44867,44884,18353,17237,44685,5259,17835,18648,45517,32454,44873,18650,45286,24438,44856,5410,44865,44870,16935,17839,37267,3,18237,44837,18172,45346,45561,44863,4686,18794,44878,44835,45180,19057,5993,18042,44711,44689,44875,44849,28530,44775,18894,6782,17771)
Unknown column 'np.person' in 'where clause'