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 (22509,18900,44766,8753,45229,5410,5993,44849,17755,24411,45518,18981,37267,44854,17756,9341,17771,44878,44867,17527,45561,17981,44711,3883,45567,6875,44835,13922,44848,4686,44845,18894,17009,18430,18301,18042,44739,44836,18286,44767,44689,44640,16885,18648,44870,44869,17601,17703,45262,19057,17114,14402,44884,18427,44875,44768,17848,45072,6862,13,18185,45277,44873,44863,14622,44861,17835,17904,44894,17657)
Unknown column 'np.person' in 'where clause'