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 (44866,18996,43800,17839,44711,44669,24411,18688,5388,44854,44767,18648,6862,45042,24412,45229,37057,44870,30986,17335,45561,13922,17092,13,44674,44687,44878,44762,14622,45421,44531,18237,31354,6875,13988,18042,24441,17527,44689,45051,18172,17981,44766,17114,6609,3,45177,10402,9341,17755,14402,44835,17848,18900,45072,44894,44640,17556,28530,8753,44875,34194,28313,13425,17904,18572,44884,4686,36472,45515)
Unknown column 'np.person' in 'where clause'