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 (18237,44685,45277,44869,4686,45346,5993,17601,6862,45042,44767,17335,45180,18353,45515,44875,44531,18286,45516,17657,13922,18900,9341,18652,44851,10402,5259,6782,24438,18172,6875,18185,18996,44866,44762,3883,44775,44863,44884,22509,17904,44669,44745,45177,44768,45043,45262,3,18648,17755,18301,44835,30963,13,14622,18042,6609,16935,30135,17756,5410,18650,44765,44687,28530,44836,18794,18572,44854,39676)
Unknown column 'np.person' in 'where clause'