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 (45346,44674,17657,44766,44835,45277,45561,6609,44867,18279,18427,44745,24412,18688,44853,44861,13988,18648,17335,44640,5388,18430,5993,17839,17835,8753,45515,44894,19057,24441,45567,44848,28530,28313,17703,44865,6862,18650,5410,44855,45043,5259,17278,14402,44875,44849,6875,31354,44685,44863,32454,44870,45177,18301,24438,44775,45042,18652,17527,44869,17756,4686,36472,18042,13,18353,18446,17981,18572,17771)
Unknown column 'np.person' in 'where clause'