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,18652,44762,3883,44685,44869,17755,17835,13425,44873,44835,44845,19057,44739,44884,14622,44848,18894,32454,5410,44854,45177,44711,18430,6862,44868,45042,9341,45180,13922,18572,17981,18279,24441,45518,24438,31354,18446,44867,18427,44858,44671,19078,17756,18996,44855,17839,4765,18688,44531,44745,44689,39676,3,44849,18794,45346,22509,44853,44674,17009,18301,18172,44775,44866,17556,18719,44836,17527,17237)
Unknown column 'np.person' in 'where clause'