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 (10402,44765,5993,44775,18427,44878,17527,17848,34194,45421,17904,5410,45043,39676,19057,17114,44853,45180,3883,3,18650,17835,17756,44863,44739,45516,44848,18353,44873,44884,5259,44855,44669,44685,45346,16885,13425,44687,30963,45072,44858,17556,17335,44875,44845,18301,44836,6862,45517,17092,44711,44851,18185,18172,44745,45561,45518,18652,24411,17657,30135,4765,17755,28313,17839,5388,24412,44856,44854,45286)
Unknown column 'np.person' in 'where clause'