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 (44766,6862,44745,44689,6782,17657,5259,45286,24411,18427,24438,22509,44739,37057,30986,43800,6875,44767,44836,45561,30963,44765,24441,18900,44870,44854,44869,45516,17703,45262,17904,44894,34194,17771,13988,44873,45051,36472,45567,44835,17848,17278,45072,18981,18353,39676,44868,37267,30135,45515,9341,45421,44853,44640,6609,45229,18286,17981,32454,44837,45518,44858,17835,18719,44849,44848,45180,28313,18172,4765)
Unknown column 'np.person' in 'where clause'