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 (18446,17114,18301,31354,44848,17839,17657,44739,44531,44762,6782,16885,44855,44689,5410,17009,37057,17278,45561,45421,9341,44884,6609,39676,17904,18279,43800,45072,16935,45043,44851,17556,18572,45567,44865,44867,44765,18900,45515,18185,44837,44853,44711,44745,44764,45286,44669,44766,44640,4765,18894,30963,24438,44775,17848,18353,45042,44870,30135,24412,45051,44856,19078,18172,17756,17092,18996,17601,17492,45517)
Unknown column 'np.person' in 'where clause'