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 (44669,44868,18900,45518,44856,44837,17904,4686,17703,17601,13425,24438,18648,45180,45051,6875,45042,44745,44894,17278,18279,45567,19078,44875,32454,45515,24411,10402,17492,3,44674,44768,44884,18794,44765,17771,8753,14622,36472,44863,44853,18446,24441,45561,44836,37057,45516,44775,18572,18427,6782,44873,13,44531,39676,18172,28313,31354,44835,18430,44711,44689,18652,17527,17839,30135,17335,16935,17657,44671)
Unknown column 'np.person' in 'where clause'