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 (37057,17556,28313,18996,17335,18794,14622,4686,31354,36472,30135,24412,34194,13922,44687,6875,45517,18652,44689,44868,18286,17848,18648,16885,44767,45043,5388,24441,44856,24438,44764,44865,39676,44870,30963,44848,18981,14402,44861,18894,44671,17839,17114,17755,45346,44531,44873,18900,6609,44855,17771,18353,37267,44837,18572,45277,18719,44863,17703,18042,44836,44869,10402,44835,19057,17009,17492,44878,17351,44674)
Unknown column 'np.person' in 'where clause'