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 (18353,44775,34194,44711,45180,44745,39676,17351,6609,44866,44687,44766,17092,37267,9341,22509,5388,16885,44836,44671,14622,30963,44837,44685,32454,3883,44689,44739,17335,13922,18286,44858,45042,18279,17601,45518,18650,24441,18981,44848,18301,37057,44835,5410,44765,44762,18185,30135,44851,24438,31354,6782,44861,4686,18900,28530,45229,18652,17657,17904,45517,44640,44875,17703,18430,17981,8753,17237,5259,13)
Unknown column 'np.person' in 'where clause'