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 (17009,22509,45277,45072,13425,17092,17351,44866,18279,18353,3,44768,17237,44739,44711,44671,24438,39676,6875,44762,9341,45567,17839,18430,24411,44531,3883,17335,44765,45042,45561,4765,16885,16935,45286,44845,44640,28530,18185,18301,18900,44856,44745,13988,45051,44878,17657,17756,44767,45180,45043,45177,44685,44875,17114,13,45229,17703,45518,45346,19057,37267,6609,28313,44861,44863,18286,18650,18648,44766)
Unknown column 'np.person' in 'where clause'