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,17756,45043,44685,17839,44869,16935,45286,45567,45517,31354,44854,44861,28530,17114,18652,9341,17527,18286,44669,44764,45262,45561,17009,18301,17092,17335,30963,18430,37057,3,17771,13922,45180,44873,6862,22509,17755,24411,44766,18572,6875,44739,18427,30135,18648,24441,44853,17556,17492,8753,13988,34194,44775,39676,19078,24438,36472,5388,44671,18042,17351,18446,24412,44866,44674,44867,44855,44851,14622)
Unknown column 'np.person' in 'where clause'