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 (44765,44669,44849,44863,44858,44867,44845,44685,17981,45421,17835,17755,43800,17527,44870,5388,17092,31354,28313,18286,44854,44856,24411,32454,18719,45518,17237,44767,45515,18427,44855,44687,45277,18650,44894,16935,14402,18446,44775,17904,44878,18301,17657,36472,6782,5410,44868,18430,19078,44689,45042,18042,44836,45180,30963,45177,18894,44739,17556,3883,44861,17771,19057,37057,44869,6862,44837,17601,18279,18572)
Unknown column 'np.person' in 'where clause'