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 (18185,30135,44762,17278,45518,17835,45229,44858,18286,44873,17237,44866,45072,17527,44861,24412,44854,44671,44878,17755,45042,19078,10402,17601,45561,18688,44863,44868,18279,18301,9341,17335,44775,16885,44856,6782,37057,5410,44765,44853,18237,30986,44768,24438,44848,44745,17981,14402,18446,44689,17556,17904,16935,32454,18652,18353,5993,45517,43800,17092,17351,44685,44851,6875,44766,18172,18430,8753,44867,18650)
Unknown column 'np.person' in 'where clause'