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 (24412,44845,44869,45043,18719,44848,44674,44868,18650,17092,44853,45072,10402,39676,18286,45229,18648,44762,18042,44766,44878,17904,44851,18430,17351,44531,24438,45567,17278,18894,45517,4686,44739,45277,17703,17771,6782,43800,18185,45421,44640,17009,13,24411,17839,44669,44856,19078,45515,44849,44671,18353,18301,19057,18279,5259,44765,45177,44867,14402,44711,44855,18981,28313,17657,44858,9341,18652,44865,44861)
Unknown column 'np.person' in 'where clause'