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 (44687,45043,17755,18185,44855,28530,45517,24441,45262,17848,18650,17114,45515,44685,44836,18237,17278,17335,44878,44867,44858,44870,18652,18794,44856,44745,18353,44851,16885,13922,44767,9341,18981,44845,18301,18719,18688,18572,24411,18996,31354,45051,45346,18446,44739,17771,44894,45277,17601,44866,44884,24412,5259,18042,18648,3,30986,17657,44869,6609,17492,44762,6875,16935,44689,44861,22509,5388,18172,44531)
Unknown column 'np.person' in 'where clause'