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 (3,17351,45229,30963,5388,10402,44878,44775,45421,44689,30135,44765,5993,17848,44858,24438,14622,18279,17335,45262,31354,44868,44855,45042,17839,28530,45286,18446,44854,44837,44849,45277,45346,18572,44865,43800,44671,6609,44875,44851,19078,18996,5259,44894,19057,17755,18286,14402,44836,18172,18650,45518,36472,30986,28313,18981,18794,9341,44869,24411,16885,17527,44867,6782,17703,37057,6875,44531,18652,44640)
Unknown column 'np.person' in 'where clause'