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 (17278,17981,17492,37267,44854,13988,44856,44768,44775,18427,44669,44837,45229,44674,17335,44835,45517,18894,44845,17835,18688,17839,45346,17848,6862,24438,5993,17756,22509,16885,45518,44869,17237,28530,44767,44689,30986,18650,44868,44640,18185,18900,44685,44878,45515,44671,18430,18981,17601,44687,45561,31354,44766,43800,45043,36472,10402,44870,17904,17527,30963,17351,44764,44836,44851,45277,18301,18652,5388,45042)
Unknown column 'np.person' in 'where clause'