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 (45517,44845,44873,24412,45042,44855,37057,45561,44853,39676,44685,4686,45286,43800,3,17848,44878,18652,32454,44863,14402,17351,3883,18719,10402,18237,44711,45518,18301,44837,17703,17771,17835,44775,44687,13425,44669,17755,17904,8753,44674,18688,19078,44766,30135,17756,18279,45277,44851,17527,18286,44689,45180,44739,18894,44870,44868,44856,44861,5410,44835,18430,44849,44869,31354,28530,18042,9341,44765,44854)
Unknown column 'np.person' in 'where clause'