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 (36472,44687,18996,17492,4765,18981,44837,37267,18185,18427,37057,44858,24438,16935,44869,24411,31354,44861,14622,3,45051,44867,13922,44854,18430,44853,45516,18894,45043,44863,19078,32454,45515,3883,16885,44855,6782,44669,44894,45517,4686,45561,17527,17848,45177,28530,17835,44856,5388,45346,18794,44767,17351,45286,18650,18301,44674,13988,18353,44875,44768,44531,17755,44884,44835,44873,8753,18900,44868,17904)
Unknown column 'np.person' in 'where clause'