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 (44764,18652,44868,17904,24412,5259,13988,16935,24411,18650,44766,44878,44870,44711,31354,45043,18719,17492,18427,28530,43800,6875,44861,45180,5410,45561,44851,18572,44884,18185,18286,17351,45518,6609,13922,18042,44762,45517,17114,44685,45262,18279,36472,44689,45421,19078,10402,44845,3,44849,18794,17756,44873,18981,44739,44674,44867,44775,18172,44640,17601,44858,44671,44875,44765,34194,45051,13,44835,18301)
Unknown column 'np.person' in 'where clause'