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 (24441,5259,24411,18185,9341,45262,45180,44865,45229,16885,18652,17755,18286,18996,44856,30963,44764,44875,17657,5388,44836,44768,44745,18237,10402,37057,45346,24412,17601,5993,44531,19078,30135,6862,17351,45567,44894,44851,13425,45421,44863,45277,44766,45286,18688,17335,44837,44767,22509,44711,18648,17492,6782,45518,17527,44640,14622,4686,28313,17756,45561,44685,4765,44861,18981,44765,8753,18794,44674,17848)
Unknown column 'np.person' in 'where clause'