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 (45262,6782,44837,45180,13,17756,18172,44863,5410,44531,44762,37267,18572,24441,5388,32454,31354,45043,44745,45072,44674,13922,18719,36472,16885,44851,44855,45515,18650,17755,18427,17092,17335,9341,18353,10402,43800,18237,44875,30986,30135,44856,44845,18446,3883,28530,44765,44878,18286,18894,5259,19078,44868,44894,45042,45177,16935,44866,44640,17981,44836,44768,17771,44854,17839,18652,18301,45421,4686,45567)
Unknown column 'np.person' in 'where clause'