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 (17904,44836,5993,5388,18237,17237,24441,10402,18900,44873,18794,18301,44674,45177,18652,17756,18430,18996,45567,18719,43800,45051,45072,13922,45516,24411,28313,39676,44837,44745,17703,18353,17351,18446,45421,44687,17492,44861,44854,28530,34194,45180,44766,45517,45515,44835,17981,44762,44775,44878,18981,37267,44849,18894,45262,24412,17657,17335,17848,18279,44671,6609,45277,5259,44853,45229,44858,31354,30963,44689)
Unknown column 'np.person' in 'where clause'