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 (17114,3883,18981,24441,16885,44878,17848,19057,44531,45277,44873,44858,24411,3,44854,45042,4686,17756,44837,44766,44762,17092,44875,44855,18353,13425,17556,18572,5388,44745,14622,4765,18719,17755,17237,44836,6862,18648,17771,18894,17981,17835,44671,45286,34194,18172,18427,8753,18996,32454,17601,9341,28313,17904,10402,13922,44689,5410,44711,45518,44669,39676,17703,18279,24412,37267,44845,30986,18286,6782)
Unknown column 'np.person' in 'where clause'