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 (18648,44711,44745,24441,44674,3,5259,44878,18981,44866,17492,18042,44855,45177,44861,44835,9341,14402,30963,44671,44739,22509,44837,44845,45515,28530,14622,13425,16885,18652,37267,18894,8753,19078,44875,44884,24438,30135,13,17527,17904,17755,45072,17756,44858,4686,44854,44848,4765,17351,17556,34194,45517,17835,44894,17237,18427,24411,13988,17839,44687,6609,18996,44766,18719,18185,17009,17092,18286,18430)
Unknown column 'np.person' in 'where clause'