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 (4765,44884,28313,18237,5259,45515,24411,44836,45517,17848,10402,17756,44866,18185,18301,18688,31354,44775,18427,44835,45051,17492,44894,18894,44689,44671,45177,30986,44854,18430,37057,17237,32454,44855,44837,17335,30135,17527,45072,45286,45567,44870,44669,44640,19057,18652,45346,18900,17556,5388,6609,45421,18042,14622,18719,45277,18981,18650,44768,17351,17981,5993,34194,17755,18279,18446,44868,45518,17839,18794)
Unknown column 'np.person' in 'where clause'