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,44878,13922,45043,6875,18301,45051,3,44685,17527,31354,34194,44865,45561,44739,45517,44674,44762,44689,44868,17092,45518,18572,24438,45286,24441,24412,45177,16935,44640,18648,18719,44671,4765,44764,18185,17601,44836,18430,18172,18353,37267,45262,6782,44775,14622,32454,28313,13988,44870,17703,44851,18652,44854,5259,17351,30135,18981,17839,45229,44745,44884,18427,44711,19057,17835,45421,14402,6609,17904)
Unknown column 'np.person' in 'where clause'