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 (17756,18042,44870,44865,18719,18446,17492,13922,34194,17351,30135,44765,16935,19078,8753,18172,18286,44711,36472,18279,44767,17278,45516,24412,44894,45177,18427,18185,19057,44878,44869,44867,3,44766,44866,44848,5259,24441,17527,18430,44849,17092,44851,9341,45567,44669,17601,45286,45072,18650,44884,18900,18353,32454,44685,14622,44745,44868,44674,6862,45262,44873,31354,45346,18572,6782,44856,30986,30963,44836)
Unknown column 'np.person' in 'where clause'