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 (44775,45517,45042,19078,43800,18430,37267,17114,18427,44863,18900,18353,45072,6875,44739,44867,16935,18572,17755,5993,17351,44878,45177,17835,45518,44845,18894,39676,45262,24411,14622,18237,13988,30135,17981,6782,37057,5388,44854,17335,44764,10402,45567,45346,44765,44868,18446,44669,44869,44768,17237,18648,18172,44875,3,44685,44762,44866,18042,45180,44767,31354,18719,30963,18981,18650,45286,44894,17527,44856)
Unknown column 'np.person' in 'where clause'