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 (28313,44848,9341,43800,44861,18894,44768,3883,31354,18794,30986,10402,19078,44685,17848,17009,44836,44855,4765,44845,44867,44868,45051,45072,17278,44870,44851,18237,17771,34194,44835,18427,45561,44739,17839,45518,18279,45286,32454,18688,18648,18650,18446,13922,44711,17601,44837,44869,17981,18286,5410,18572,37057,28530,18185,18719,6875,44853,44894,5388,44884,24441,24438,45043,6782,18981,45346,44873,44854,45262)
Unknown column 'np.person' in 'where clause'