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 (44866,18172,44870,17657,44894,24411,31354,17601,44884,17756,17351,44711,44848,14402,45180,44878,18446,18042,37057,44835,44775,45043,45517,18794,18279,17848,44851,5993,13,44869,17904,18237,44837,18430,4765,17556,44685,44853,17114,17703,45277,6782,18648,24441,18996,14622,45072,44856,45229,36472,44865,30135,16935,3,44845,3883,10402,43800,44873,44687,17755,16885,13922,44861,45516,45286,28530,28313,18650,45051)
Unknown column 'np.person' in 'where clause'