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 (44764,17703,44767,44671,17092,17601,24438,44851,44858,19057,44837,45561,5388,44711,18172,22509,44884,45346,44640,44762,5993,44870,32454,43800,45286,17756,45567,17527,17904,44775,45517,44674,10402,44689,3,24411,24441,19078,30135,18042,45051,18650,14402,44531,3883,18427,18996,31354,17351,17657,45180,44866,44867,18353,18286,44669,17755,17771,18688,44835,45421,6875,4686,45516,44854,45043,44856,44845,18185,30986)
Unknown column 'np.person' in 'where clause'