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 (44762,17771,24438,24412,6862,18652,44767,44669,13,44866,44849,45229,24411,36472,44865,45517,17009,44867,30986,18648,45042,14402,18237,44835,44855,13988,17335,45286,17527,18900,44856,39676,45262,14622,17848,19078,44745,44878,3,45346,18430,18301,8753,17092,6609,45561,44853,17351,44869,17237,5259,44884,44836,45277,18446,31354,5388,18719,45421,44689,45516,44854,18894,18650,44711,16885,28530,37057,19057,13922)
Unknown column 'np.person' in 'where clause'