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 (44878,45229,43800,18572,45567,18794,17848,17904,44836,44870,3883,44674,17492,18427,18900,17839,24441,44884,44865,36472,14402,24412,44868,44849,45346,30963,44873,28313,44685,17756,44767,17114,44689,45072,17351,45561,28530,17009,44711,44875,44762,17755,24411,44861,44669,19057,6782,3,17771,13425,30135,6609,8753,18688,44851,17335,5993,44863,44858,19078,44853,45286,17092,44775,18172,18286,45042,5410,44766,45517)
Unknown column 'np.person' in 'where clause'