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 (45567,44745,18279,18650,13988,44878,13425,44865,14622,18719,17904,44671,18042,17092,6862,5259,37057,44875,17237,10402,18688,5993,44685,44861,6875,39676,18981,45421,6782,44884,44837,30986,45051,45229,24441,18430,37267,18894,18900,17335,44674,19057,18301,45072,44863,36472,44849,17756,18286,17839,44767,17527,28530,44640,24412,5410,17703,17009,17755,18353,18185,16935,17351,18794,44868,44867,44855,18652,18446,17556)
Unknown column 'np.person' in 'where clause'