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 (45567,18237,45262,18572,44894,18286,44531,18894,17351,44836,44873,18427,18301,17237,13,4765,9341,24441,16885,18981,17657,28530,8753,18794,37267,44845,30135,24411,3883,44671,44767,45042,17335,18652,5410,44878,22509,44768,24438,17848,13988,17092,17756,32454,17601,28313,44869,44766,14622,30963,44848,17278,18688,44854,5259,17009,3,44866,44884,18185,44674,37057,6782,6875,45516,44640,45177,39676,45286,17556)
Unknown column 'np.person' in 'where clause'