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 (19057,44685,18981,17703,44873,17237,4765,44866,45517,18652,18650,45177,18894,45346,44863,44764,18900,45516,18237,45072,44640,17527,44739,44878,45515,44856,18648,44531,6609,17755,45518,17114,5259,45229,6862,44855,5388,18688,37057,24411,45277,44851,17904,18446,3883,19078,45262,44687,17839,14402,44869,44745,24441,28313,17278,18042,44870,18301,17351,44894,18427,45042,17601,14622,17981,44765,18185,44884,17771,44768)
Unknown column 'np.person' in 'where clause'