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 (4686,44674,6609,45262,44870,18894,18353,17771,37267,30963,45043,44766,28530,30986,34194,16885,18042,44884,17703,31354,44835,17981,17601,45346,6862,18648,14402,4765,13,44739,3883,44687,17009,10402,44531,5993,45518,44853,17114,45516,18301,3,44848,44640,45286,17848,28313,44745,13922,18279,39676,6782,17657,8753,45177,5388,17556,44866,24438,22509,18237,44669,32454,24411,18185,44836,5259,45180,44894,45517)
Unknown column 'np.person' in 'where clause'