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 (45517,17904,44854,16935,4686,19057,18794,5259,28530,44870,44835,24441,17114,45177,18185,17703,17981,17755,44674,44848,13,22509,45229,18353,18652,24411,17835,17009,18446,34194,32454,30963,30986,45043,44836,17335,44768,18237,45286,24412,17771,44711,17527,28313,17601,45515,18042,18648,18286,16885,44855,45567,31354,17657,17848,8753,18572,13988,3,44762,18900,44856,45072,17839,45518,44689,36472,17092,44739,44869)
Unknown column 'np.person' in 'where clause'