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 (17492,17114,44764,44671,4765,3,45517,45518,44685,24411,14622,28313,6875,44869,45516,30963,19078,19057,44848,44863,3883,17237,45421,18172,18894,44837,45277,18648,5410,6782,45043,14402,44853,18185,31354,45072,44884,6862,17755,17703,18237,44875,44640,10402,45177,16935,17657,44856,44689,16885,18572,6609,44878,39676,44855,17556,44849,9341,44854,36472,45262,18794,45515,13,17981,18353,5388,45561,17848,44711)
Unknown column 'np.person' in 'where clause'