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 (44689,17755,45561,31354,6862,18648,36472,28313,18185,44884,8753,17904,44861,17009,22509,37057,44854,44863,37267,44858,44687,17703,44640,17771,13922,18042,44837,17278,18900,44866,18279,19078,24411,44870,19057,44669,18427,45072,45346,32454,45567,44851,18353,44531,18652,39676,44875,44674,14622,13,17756,44764,18794,44865,18996,44848,45515,13425,16885,44845,44768,5410,44775,17351,18446,6875,44869,45286,17527,34194)
Unknown column 'np.person' in 'where clause'