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 (18794,44531,18185,44854,18430,14402,44640,45515,44873,44762,18572,18353,4686,36472,17527,44674,44687,44884,45516,45561,18996,18172,44711,10402,30963,18648,19078,18981,30986,8753,18427,44870,37267,44766,18042,17492,18688,44669,44856,28530,6862,17601,5388,44848,45567,17848,44853,24411,44875,18301,18900,16885,44855,17904,44835,22509,44867,45043,14622,44671,17835,9341,17755,44849,13922,44851,44739,24412,44869,44866)
Unknown column 'np.person' in 'where clause'