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 (44869,17755,5993,17114,18648,37267,44855,44767,44867,17527,44837,45518,17756,6609,17771,45277,19057,6862,18042,18185,13988,18279,18237,18652,19078,17839,17092,14622,22509,45177,45262,44845,45051,24412,9341,17981,18427,17492,45517,18894,44531,18900,17835,45561,17237,30986,17848,17278,44711,44835,16935,34194,13425,5259,44775,44873,3883,39676,18688,28313,44884,18172,45567,44674,44878,24441,6782,44894,17657,18430)
Unknown column 'np.person' in 'where clause'