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 (44767,45286,18353,24412,45518,17835,24438,18185,45346,44853,18648,5388,45177,45072,18430,18286,18900,18719,44848,44669,44875,44766,36472,37057,44764,18981,17601,44762,17771,18650,45421,37267,17657,5259,45515,4765,17351,44884,17009,17904,45043,44745,5410,17335,18894,6609,18301,4686,18996,44836,44739,3883,45567,16885,30135,44765,44856,17278,8753,13922,45042,17092,45516,44640,44868,44768,17755,17556,6862,44855)
Unknown column 'np.person' in 'where clause'