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 (18042,44689,4765,44867,19057,45286,18237,45180,44894,44858,18185,44674,5388,44739,45518,18648,44836,17237,18894,18286,4686,31354,17848,44845,18430,44768,45072,17657,17092,17981,28530,37267,44878,9341,44856,16885,39676,44764,18900,17492,17278,19078,18650,18652,17351,44851,44669,44853,44863,45517,17335,13988,44861,44855,17835,36472,18981,44875,18688,45262,6609,5410,45177,6782,44866,45277,44765,13,14622,44687)
Unknown column 'np.person' in 'where clause'