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 (44878,44739,18996,18648,17351,17848,44868,5388,13,36472,39676,44861,16885,44835,44689,44867,43800,14622,18572,4686,31354,24438,3883,30963,9341,44856,3,18427,17009,44764,17904,28530,18794,44762,45567,18172,18353,10402,18719,45286,44855,45051,14402,28313,6875,44851,17657,18900,18279,44765,8753,17237,6609,17981,44873,37057,45517,17601,37267,5993,13922,44870,18185,45043,18650,44745,17703,17092,44837,44685)
Unknown column 'np.person' in 'where clause'