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 (45262,14402,17756,17848,18650,44875,5388,18894,44873,44687,44768,17835,18237,44845,22509,44837,44870,18301,44868,44854,44835,37267,44739,17527,31354,19078,17904,18185,44858,24441,13,44674,44531,17703,45072,44851,45051,19057,45567,13988,44765,45421,17657,18688,13425,17092,17839,44766,44894,45515,28530,44865,5410,44869,45517,45229,18719,44856,6862,45286,44866,44762,44863,9341,18172,17335,32454,44689,18286,6609)
Unknown column 'np.person' in 'where clause'