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 (24411,3883,17755,44856,8753,44875,24441,44669,24412,45516,18719,31354,18430,44768,44866,17981,45043,45277,18652,18894,44765,44689,45517,44845,30135,44858,17527,45346,44836,18185,17237,45051,10402,13425,19057,45180,44868,34194,44745,18650,18688,44764,44873,16885,17278,44855,17835,3,17601,44835,44865,44711,45286,17009,44674,37267,44739,45421,44869,45561,13922,17756,45567,44894,4765,6862,30986,19078,37057,44863)
Unknown column 'np.person' in 'where clause'