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 (18301,45042,13,8753,32454,44671,37267,6782,44685,17114,44868,44865,18279,44866,28313,3,45346,3883,45561,13988,18794,44739,9341,44884,44851,17981,17009,31354,44669,45286,44853,17839,44689,44767,30135,5993,17703,45421,44848,22509,18430,18572,45516,17755,14402,5259,18286,18688,45277,44768,45567,44894,18981,18427,28530,44775,17756,43800,18900,18650,17237,44836,45177,39676,45180,17527,45518,44869,30986,24411)
Unknown column 'np.person' in 'where clause'