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 (17527,45515,19057,17703,44764,45567,17009,44867,18042,6862,6609,10402,13,44855,24438,44640,44765,18430,44768,18894,18446,44873,45072,18279,44685,18900,44845,4765,44739,17601,17848,5410,17092,18719,17114,37057,44865,28313,17755,17657,44869,44878,5993,17492,44851,45229,4686,44674,32454,43800,17835,45177,18794,44835,44858,30986,3,34194,44775,44861,28530,6782,44766,17237,19078,44894,17839,37267,5259,18185)
Unknown column 'np.person' in 'where clause'