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 (45346,17848,45567,44765,6875,45177,17981,45229,19078,17771,17114,17492,37057,18427,44851,44836,45518,28530,45286,18430,5993,34194,18652,44861,44867,13,18650,18900,18301,14622,44687,44764,44863,45180,17278,5388,44856,18185,5410,6862,45043,36472,45517,18172,24438,24412,6782,44878,17835,17657,19057,17335,44837,18648,44685,39676,4686,45561,13922,44858,44762,44531,18286,10402,44766,44767,44866,17839,44855,44745)
Unknown column 'np.person' in 'where clause'