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 (18894,44531,44837,18981,18648,24412,18996,44775,45277,5410,17237,44745,8753,19057,17756,45421,18688,14622,44855,32454,24411,45286,17904,44894,44875,6875,18172,45518,44865,44851,18430,18650,6609,44868,44884,3883,37057,44765,28313,44640,4686,18286,18279,17092,19078,36472,17492,17981,45072,44870,4765,45042,44836,24438,45516,44848,44873,34194,17527,17278,37267,44863,6782,18652,45177,17601,18900,45262,18427,18237)
Unknown column 'np.person' in 'where clause'