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 (16935,19078,17335,24412,44863,44868,10402,44873,45286,45421,18042,17839,18981,44836,44845,45043,18894,30963,44875,18996,24441,6782,44865,17492,17009,6609,44869,44835,17981,44775,44855,24411,17756,44745,4686,30135,45561,18286,13922,44674,45180,18446,17092,5259,18427,17556,44849,44867,44689,17114,14622,13425,45516,18301,8753,19057,45262,44894,31354,17351,44766,39676,17527,44837,17771,45277,44884,17237,17848,44858)
Unknown column 'np.person' in 'where clause'