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 (17601,18301,24412,28530,44866,17351,44640,17278,44687,45177,30135,18185,44767,17009,37267,44836,44854,18572,18981,18430,44858,32454,18648,44531,10402,44894,17848,9341,17981,8753,17237,45346,18237,39676,18650,44768,44835,44869,28313,45072,45286,44685,6875,18172,13425,3883,44689,18286,14622,44711,44845,44669,45516,17835,18894,30963,37057,19078,19057,6782,45567,17755,44765,45262,24411,44861,18652,44884,18688,16885)
Unknown column 'np.person' in 'where clause'