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 (3883,45518,17237,30963,13922,30986,45567,18237,17839,45346,45072,44687,44870,44531,14402,18286,45262,17009,44867,18430,45286,44689,17527,16885,37057,44835,13425,18427,8753,45421,5993,44837,44861,9341,17492,44764,45277,44845,44853,18353,18688,17114,17835,19057,45515,44739,10402,44767,44868,44745,17657,31354,5410,44765,44875,44669,44766,17981,44768,18650,18648,45051,44674,17556,30135,45043,17601,17092,17756,6609)
Unknown column 'np.person' in 'where clause'