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 (44855,14622,45567,44858,10402,44849,13,44854,44856,44861,5259,30135,44867,36472,17771,3883,13425,18279,45277,17835,30963,45229,44884,6609,18894,17981,44640,17237,17335,44531,18185,4686,17114,37057,18301,18650,18427,18172,18719,17601,44674,44835,28313,44762,14402,44837,44711,44848,9341,18042,45051,44687,45286,45516,19078,19057,8753,44845,44739,17556,18900,18648,18286,44671,32454,17657,44836,44868,39676,45042)
Unknown column 'np.person' in 'where clause'