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 (17009,44671,18237,18719,24412,5259,17657,18430,18650,18301,18688,45042,18652,28530,24411,18427,19057,17981,44848,16885,17092,18353,17848,17755,44762,5410,32454,6875,45516,17114,44685,13425,17835,17703,44875,18996,31354,17492,45043,44865,18794,45518,28313,30963,18172,17756,45051,5388,5993,45177,18042,14622,13,18185,17839,44851,17904,24438,44687,34194,45262,17527,44835,37267,18900,22509,44767,44863,10402,18446)
Unknown column 'np.person' in 'where clause'