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 (44845,44762,44868,3,44765,44867,44856,6609,45286,17703,44669,44851,6862,30986,18301,19057,18427,44671,17756,14402,45518,13988,13,44685,44837,17904,44836,17351,44775,37267,3883,6875,45515,18996,44531,45051,14622,18688,44764,45346,39676,45229,13922,44640,18572,18237,18650,18894,18279,44687,18286,45043,45421,44739,17771,44674,17755,6782,44875,18900,45517,17527,18648,44866,36472,18446,44853,18652,24411,18172)
Unknown column 'np.person' in 'where clause'