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 (17114,17527,44765,8753,44768,17009,24441,6782,37267,24412,44878,44689,37057,24411,45286,45421,31354,17756,45277,45180,44669,44671,44775,18446,30986,39676,18996,18650,17657,4686,17092,18237,44863,18900,44858,22509,44685,44854,18430,18427,28313,44855,18688,44835,44867,16885,13,18981,17237,44845,3,44848,44869,36472,19057,44837,18794,45516,45515,3883,13988,28530,9341,4765,6609,24438,19078,44640,44531,44767)
Unknown column 'np.person' in 'where clause'