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 (44853,44836,18894,44640,44878,45277,45180,18900,44765,17556,13,16885,39676,18237,17657,44531,4686,45561,18648,18652,44711,17835,18430,45517,44762,13922,34194,45515,28530,6875,44767,44870,18996,30986,45286,44861,44674,4765,17904,17848,44739,17278,44855,10402,44866,37057,44884,17839,18172,17527,19057,6782,44849,9341,44687,18650,45518,44671,45567,45042,44766,44685,36472,44854,45262,44894,44745,44835,44775,22509)
Unknown column 'np.person' in 'where clause'