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 (45516,44689,44767,43800,44669,18648,44685,44867,18794,17237,5410,44745,44870,44671,44884,18430,44853,30986,44858,44674,24438,34194,45042,17278,44762,17114,9341,32454,45277,44640,45567,44875,44836,45421,17904,18279,44878,16935,5993,13425,14622,18301,6609,45517,24441,8753,5388,24412,4686,44854,31354,44835,45177,13922,18719,18353,5259,44531,44837,17351,28530,14402,18446,17556,45518,13,44863,19057,17335,17657)
Unknown column 'np.person' in 'where clause'