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 (45286,44851,28530,9341,5410,5259,45277,44764,45177,44875,19078,18427,44855,37267,17835,44836,44687,6609,32454,16935,6875,44854,17237,44845,31354,44878,28313,18719,18279,17335,45262,18900,44858,13922,18652,45517,17981,18894,44894,17092,19057,45561,43800,44765,17904,44866,44685,10402,17601,13988,18794,17009,18650,45180,24438,18981,18237,17556,44711,44766,18688,44768,45518,3,17848,45042,44739,45346,30963,14402)
Unknown column 'np.person' in 'where clause'