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 (44671,18172,45277,17237,45516,24411,44861,44845,17278,18042,17009,18430,18446,17771,45072,9341,44869,45042,17848,17114,44836,18996,17835,45051,17351,18650,44768,17981,44878,19078,45515,18279,44848,18719,5388,3883,44851,13922,44775,44711,45518,45229,44689,45180,44685,14622,18894,44765,44835,44762,45561,30135,6875,44767,17601,44870,45043,44868,17755,18648,18237,17092,18794,45177,44875,44687,44766,24412,6609,6862)
Unknown column 'np.person' in 'where clause'