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 (8753,45561,44671,45262,44849,18185,44669,18648,17114,28530,18996,44867,6609,45346,44765,17835,30135,18719,44861,17839,17009,17237,16935,19078,45286,44745,44764,44856,45421,18286,5993,24438,24412,44640,44875,18688,3,10402,18652,44878,45277,18279,44845,13,44531,17278,45518,44855,44870,44865,44853,45567,44863,28313,37267,24441,37057,44837,14622,18900,18572,18301,18794,17981,17601,30963,45072,18446,44687,44868)
Unknown column 'np.person' in 'where clause'