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 (18353,18446,6875,10402,18996,18427,17278,13988,24441,37057,17601,44766,39676,45180,45567,17492,13425,37267,44855,17351,18301,18185,17092,5259,44640,44739,45042,13,44768,17848,34194,45515,44674,17657,4686,18650,36472,44875,44869,45518,24411,18794,44849,45516,17756,16885,17703,44866,17839,18042,14622,45561,3,18572,44867,45346,5993,6862,18981,17755,44764,30135,45229,18286,44835,44687,44865,18648,3883,17981)
Unknown column 'np.person' in 'where clause'