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 (17756,6862,16885,44674,13,17703,17351,18446,24441,44669,17278,5993,17848,17601,18286,44853,17527,39676,30963,45051,18996,18652,44766,44866,3883,5388,17335,17092,45180,14402,28530,6782,44767,13988,44689,24412,16935,44858,17835,17771,18237,6875,30135,44884,44865,9341,44848,45561,44745,45277,5259,44863,44775,44835,45177,44894,17556,24411,18981,34194,5410,4765,44836,44854,18894,45286,8753,44856,44739,10402)
Unknown column 'np.person' in 'where clause'