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,6782,18301,3883,18572,18286,17278,44745,18279,19057,44863,44858,18719,18650,44868,44875,44854,17335,44870,45286,44861,44689,18427,44685,22509,44836,44767,32454,44762,45177,17527,44869,44849,44671,16885,45517,18446,17351,44669,44848,24438,45516,17756,44765,45518,44768,43800,18430,30963,5410,34194,6609,31354,44764,18042,14622,45072,44739,18185,10402,44775,44867,9341,37267,17703,17114,13988,44640,44878,17771)
Unknown column 'np.person' in 'where clause'