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 (17904,44768,44863,17009,9341,18185,5388,6875,44858,44870,45346,44875,17601,19078,37057,17335,17492,44835,44745,44873,18430,24412,43800,45042,17278,13,18648,24441,45262,44849,18900,44865,17657,44739,44845,18794,44711,10402,14622,18353,45516,17839,44531,17527,17114,17771,13425,17351,44853,16935,45043,18286,17848,44851,3883,44767,17981,17092,44869,44836,18719,45229,18996,17556,24411,44766,30963,18237,31354,44854)
Unknown column 'np.person' in 'where clause'