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 (44762,17601,17755,17237,44711,44767,44531,19057,13,8753,24411,30963,17771,18794,45518,45561,45042,44856,18900,44848,32454,5993,17756,45286,18981,45180,18185,13922,44861,18652,44836,44845,43800,44687,45517,17981,44875,44870,44868,45346,18648,44849,30135,16885,45072,18286,31354,16935,44766,44689,45229,14622,17278,45277,44768,30986,17835,44640,17492,37267,44669,45043,17904,44858,18894,44866,17703,17114,44878,18572)
Unknown column 'np.person' in 'where clause'