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 (14622,17351,22509,17771,3,44767,17981,17492,31354,45421,44835,30135,45286,44851,18042,5410,44866,13922,17009,44836,44669,44765,44848,44858,6782,45042,44849,45515,17848,44837,28530,45051,44884,44854,18572,24438,18353,37057,5388,44845,24441,17703,45072,16885,17092,17839,32454,44766,18650,18279,18648,18981,17556,44685,44640,6875,30986,17527,44674,18794,45517,44855,44873,45346,5993,17835,18430,45516,18996,18185)
Unknown column 'np.person' in 'where clause'