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 (44762,37057,18794,44863,18430,14402,17237,44768,4765,45567,18301,18981,44856,44764,17839,6609,17904,18353,45180,17835,44837,44739,44845,30986,9341,6875,18719,19057,19078,17009,44745,44870,44669,18648,39676,44674,44868,17755,6782,6862,44878,45346,22509,44873,17981,10402,45517,5259,18286,44865,44765,45072,44766,18446,44687,44866,24438,28313,28530,18650,44884,18279,36472,17771,13922,44640,18185,44851,44775,44858)
Unknown column 'np.person' in 'where clause'