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 (17755,44745,44640,17092,44870,44894,44765,17335,19078,44711,16935,44851,17556,45286,17835,44867,18042,45229,18353,8753,45421,6875,45277,17756,31354,18650,18286,44766,13,44866,45043,44739,44767,37057,17278,19057,4686,44685,44762,24438,17009,9341,18279,17771,14402,39676,30986,17848,44674,34194,44853,45516,17601,18185,44855,28530,17657,5388,6609,44863,32454,44531,36472,4765,18572,18172,17527,18648,13988,45042)
Unknown column 'np.person' in 'where clause'