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,17335,45518,39676,18981,16935,44775,44865,44894,44762,28313,4765,45277,44689,19078,17601,45043,5259,16885,45051,45516,17755,44845,17527,17278,44873,13425,8753,18996,17839,18237,3,44849,45346,36472,24438,44836,44868,6609,44767,17981,17771,13922,44640,17556,18185,44765,44685,18688,3883,45262,18427,45177,30986,13988,44835,44878,18648,44869,44853,24412,43800,45072,5388,37267,44875,17848,17835,17351,45515)
Unknown column 'np.person' in 'where clause'