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 (17009,44775,17114,19078,6862,17835,5410,44711,45346,24441,4765,45072,37057,18652,45567,18430,18719,44845,17527,6875,44531,6782,44851,17657,17556,45262,45286,18794,18446,14622,44674,17601,18996,44863,44861,5259,44671,44837,44867,44835,18286,6609,3,45051,44848,44689,45561,44765,36472,44687,5993,18279,13425,17703,44745,4686,17755,18237,45516,8753,18900,44762,18042,18981,17492,24412,44685,32454,17848,44858)
Unknown column 'np.person' in 'where clause'