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 (45286,16935,6609,44849,44855,45567,44671,17351,18572,44851,16885,45346,18301,17839,44689,44685,45042,44848,44866,45515,45177,44669,18185,45043,18446,14622,44640,17981,17092,18650,44878,5388,45518,18996,13425,45517,6875,44674,18981,44531,44884,17335,44835,44894,44745,17237,17755,17703,45277,13988,17601,44768,44765,45421,44854,37057,44869,45229,24411,28530,13922,44865,18353,17657,24441,44856,3,18648,4765,18652)
Unknown column 'np.person' in 'where clause'