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 (17335,17492,24441,24412,44762,18279,44745,13425,4686,45286,17848,18688,45518,44531,44685,19078,17092,16935,45421,45277,45515,44868,44640,18981,44866,43800,44869,18648,18042,17839,28313,6875,17904,44848,18794,18237,45516,13988,5259,44856,45229,14402,44739,44669,44835,36472,17601,44849,44711,4765,13,9341,18652,44767,17771,44854,8753,6782,22509,44674,44870,18185,24411,17527,45517,44766,18301,44853,44855,18894)
Unknown column 'np.person' in 'where clause'