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 (10402,17009,30135,13988,44837,44858,44851,18301,44685,28313,14622,45561,18042,5410,22509,44869,37057,18719,45517,44845,17114,45042,44775,45180,18894,5259,3,17351,45043,19078,18353,24412,17657,5993,14402,18648,18279,44849,44861,13922,30986,45346,6875,24441,44689,17703,18237,45277,24438,4686,34194,44853,6609,44766,44671,44865,44856,18286,44745,17981,44884,44848,6782,44687,13,6862,44764,18185,3883,17335)
Unknown column 'np.person' in 'where clause'