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 (4686,44878,44868,17492,45515,44894,13425,17278,44745,3883,18894,17755,18185,10402,6875,17904,44762,17981,6609,5410,14622,17657,17351,44640,18572,9341,44836,44674,28530,44866,17835,5388,34194,44849,44767,19057,18981,45516,44856,45518,17756,17335,18353,44848,18301,31354,45561,44869,13,18172,45262,44764,6862,3,44851,16885,45043,18688,18286,17601,44775,44854,44861,18279,17839,32454,37267,13988,18650,45177)
Unknown column 'np.person' in 'where clause'