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 (24441,17755,28313,44640,6875,17556,44867,45262,44745,30135,44863,19078,45051,18353,5259,44687,44875,44836,45421,37057,17771,44855,28530,17335,44766,45177,18430,45043,13425,18042,17904,45180,45286,9341,6862,24412,44669,6782,17839,44837,44878,5410,16885,45518,44861,18286,18648,17527,17237,44869,18185,44865,44674,17492,36472,44775,34194,45567,44866,44845,44858,6609,18652,17092,39676,44762,45517,44873,18301,44671)
Unknown column 'np.person' in 'where clause'