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,31354,44866,28530,18719,24412,45072,36472,44762,17756,18353,45229,6875,44739,17657,45042,18286,3883,17092,18648,17755,44836,44873,17981,45043,18894,17771,6862,4686,17278,18446,10402,44745,18652,44837,44669,45516,9341,16885,8753,18794,18688,17492,44875,44845,44867,5410,19057,18172,45421,45277,5388,17556,18185,17335,6782,17904,17527,44878,45561,5993,19078,44531,44711,17601,6609,16935,17848,44858,44849)
Unknown column 'np.person' in 'where clause'