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 (44685,6609,6875,17981,44851,3,45277,17771,18353,18652,18286,24441,45518,4765,44531,31354,30963,18648,44855,18237,34194,18301,44768,45421,45051,13425,44848,24412,17756,18430,16885,28313,17092,17904,3883,44671,44873,19057,17278,44669,39676,17601,45515,44845,45180,44867,44767,44849,5259,24438,18185,44878,28530,19078,17835,44674,43800,5410,45517,14402,44835,44687,9341,17492,44689,45229,17848,44739,45262,44640)
Unknown column 'np.person' in 'where clause'