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 (5993,18279,36472,5259,18427,44865,18301,24438,18650,18353,5388,17904,17335,17556,44687,44856,18237,13988,44766,45286,14622,45262,6862,13922,45277,13,17771,45421,18172,44855,39676,10402,44671,44837,44894,44866,44875,44767,17981,45229,3,44873,24411,34194,45180,24441,45561,32454,8753,18042,31354,44765,17527,37057,16935,45346,44531,17755,18446,44745,17092,45042,19057,18981,44853,18286,18572,44775,44640,17835)
Unknown column 'np.person' in 'where clause'