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 (37057,13922,18042,45043,37267,24412,13,44765,17237,17114,24438,16885,44851,44766,44768,17755,45262,4686,24441,17703,18286,17009,30963,5410,45177,44687,45051,8753,44845,45072,44767,45518,44865,44884,17601,32454,18981,43800,44685,45567,17981,28530,13988,17756,44689,30986,17848,18652,17771,44894,45346,17492,18353,18650,44671,14622,5259,3883,9341,45515,44775,18572,44836,13425,44853,45042,19078,17904,44674,45286)
Unknown column 'np.person' in 'where clause'