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 (18301,43800,9341,14402,44867,19078,17351,17335,45518,17657,45051,18237,45567,44768,44861,4765,45277,45229,45043,44863,10402,5388,17009,44739,18719,14622,44854,45072,44848,45262,17278,5993,3883,44865,44765,45286,45517,30135,13922,18648,13425,13,44866,17771,4686,17835,30986,18042,44868,44836,44870,5259,17904,17755,8753,44775,44745,44762,45180,39676,18279,44873,44685,18427,18353,18650,44875,6862,44878,5410)
Unknown column 'np.person' in 'where clause'