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,4686,43800,18042,45043,6862,44867,45567,17237,44851,44853,44739,17009,45262,44863,6875,44865,44861,44711,6782,45518,17848,17556,44854,17114,45561,44866,30986,44767,16935,45229,45277,31354,28530,18279,39676,45180,18185,18688,18430,18446,44765,13425,6609,44671,44869,17351,44674,44894,17756,44856,44745,18427,22509,3883,13922,44687,45421,45517,36472,44640,14622,17278,44845,17703,44762,5388,5410,37057,18981)
Unknown column 'np.person' in 'where clause'