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 (18652,44856,6862,17237,16935,17278,45277,14402,44849,18430,44865,24411,45286,34194,44768,18172,17351,44858,18981,44869,44674,17335,9341,6875,44873,17657,44766,17848,5259,44845,4686,17703,45262,44671,18042,37057,18301,44689,17601,5388,45229,44531,10402,44739,24438,18353,4765,17556,19057,18286,44867,44875,44764,44685,13,44640,16885,8753,6609,18650,44711,44837,31354,44745,45051,45421,17755,18446,36472,45518)
Unknown column 'np.person' in 'where clause'