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 (18996,44894,18446,44775,34194,18648,37057,30986,30135,5993,18427,18900,18650,16885,39676,18279,45421,44868,22509,17278,44739,44869,44764,45177,17114,44711,9341,13988,18301,44766,44674,44689,44845,6609,17771,44884,45518,44848,44640,3883,17335,17904,45229,44767,17756,17657,19078,18172,28530,17492,5259,45042,44531,44858,44685,18652,17009,17848,44835,14402,44669,45517,44854,17703,4686,13425,13922,3,36472,44851)
Unknown column 'np.person' in 'where clause'