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 (4765,36472,14402,45518,45262,17527,44685,44845,24412,44856,28313,37057,44775,18286,18427,13922,44764,30986,44858,3883,45229,14622,31354,18446,45517,34194,45072,17657,18794,6609,37267,18996,45177,17771,45515,18172,44766,45042,44711,44745,45286,44848,17237,18652,17601,22509,18648,44640,18572,44868,17756,44531,17703,17278,24441,44878,17556,17492,17904,44739,45567,44853,44894,30963,44689,45346,45051,44851,18430,44866)
Unknown column 'np.person' in 'where clause'