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 (44640,5259,18301,44531,17278,37267,18237,44851,44674,18794,44837,44894,17335,18688,45051,17848,17835,44856,17904,18650,45515,44853,17981,44836,16935,45286,45277,17492,17755,44873,17771,19057,13425,6782,24412,44766,45043,44689,13988,18286,22509,44768,3,18430,14622,6609,45421,9341,16885,13922,44884,30963,19078,17114,44671,45518,30986,13,44669,14402,44869,5388,10402,30135,18900,43800,44685,44765,44866,44711)
Unknown column 'np.person' in 'where clause'