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 (44765,6609,13425,17703,3883,17756,18446,9341,18996,44640,45051,24438,45561,44861,44884,18572,18286,44870,44836,17278,37057,31354,13988,18301,17114,39676,44745,13,45042,44739,44685,28530,45180,44869,45043,37267,18900,44775,45277,24411,18981,45515,44868,24412,5410,45346,44848,45286,44711,18353,44845,17092,17237,18652,44851,17839,17492,44858,45072,18430,44766,14622,32454,44531,44764,18650,30986,44762,44849,19078)
Unknown column 'np.person' in 'where clause'