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 (17009,44685,45229,17351,44836,24412,45043,14622,17771,18427,44848,17492,31354,9341,24438,44762,45515,22509,8753,44856,18996,17848,45042,45072,4686,13,44884,16935,44671,19078,45517,17278,18172,44867,44854,44640,45180,44849,44739,44689,6875,45421,44674,30986,44863,44858,6782,45286,34194,37267,44669,3,10402,44868,37057,45051,28530,18648,17601,45567,18794,18279,24441,18301,18894,44870,44851,28313,19057,44711)
Unknown column 'np.person' in 'where clause'