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 (44739,18446,17771,39676,24411,44671,44861,44767,44685,44764,36472,17839,18688,13,44869,45262,44531,5259,10402,44865,44640,45229,44878,44866,6782,44875,44848,13922,17527,44854,44858,6862,44845,18427,18719,31354,45567,44689,18981,5388,45277,17848,32454,44711,6875,18279,44674,17092,17756,44849,24438,28530,5410,17981,18900,44855,17556,45072,24412,17351,45043,17755,17835,45518,6609,17703,17904,14622,45042,44867)
Unknown column 'np.person' in 'where clause'