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 (17657,18185,22509,45346,18650,44866,18688,45515,45262,5388,17278,44762,45518,45043,30135,13922,18430,18900,24411,17556,45051,45567,44836,5410,44863,45229,18648,45072,18446,17756,44689,31354,24412,45517,32454,5993,34194,3883,44739,10402,44775,44765,36472,5259,4686,17527,45286,44849,44711,18301,44851,17601,45277,44861,44837,18652,44745,24441,17492,19078,45516,18427,44766,39676,44854,18981,44685,17703,17009,17981)
Unknown column 'np.person' in 'where clause'