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 (13988,17351,9341,44689,45072,18279,18650,14402,17848,4765,44640,16935,45180,18353,37057,45042,44869,3,45516,44878,18042,5388,44836,44848,44863,5993,44745,17904,18894,44711,44894,6782,3883,17114,28313,6862,18996,18794,18185,45286,17839,18301,44851,45229,18237,30963,44685,45043,43800,18427,44687,44765,24411,36472,44861,45567,18652,31354,18648,44884,45051,44669,17755,17601,18172,17527,17278,44775,44766,30986)
Unknown column 'np.person' in 'where clause'