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 (18794,18688,13425,31354,17981,44870,44687,45229,44835,44762,30986,45072,45518,14622,44640,18279,44671,45516,44855,44866,44531,44854,44858,45346,45180,44878,44861,44865,17904,4686,18719,44856,16885,44768,18353,19078,18981,5410,17839,6782,17492,44894,5993,17835,18427,45421,30963,5259,4765,17237,17092,45286,44863,18237,44868,44775,37267,44766,16935,44674,22509,17351,44837,17278,44765,14402,17657,44739,45262,17556)
Unknown column 'np.person' in 'where clause'