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 (30135,6862,44870,17981,45561,44867,18301,45277,17771,18688,44685,44869,18279,44856,18042,17703,44689,17756,44849,44865,4686,16935,45180,5410,44775,16885,17527,45229,8753,43800,39676,44762,18185,44875,18981,44671,30986,18353,44868,45567,18286,44764,44768,45072,44739,18172,9341,44837,37267,45043,45421,17848,18794,44836,44767,18430,44855,5259,24438,37057,18237,44878,19057,44858,17835,44687,17839,45286,44848,44861)
Unknown column 'np.person' in 'where clause'