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 (30986,18572,36472,44851,44762,18648,18353,6862,44875,19078,24438,45561,4765,3,45180,18042,13988,18301,44853,9341,44856,30963,44861,44640,45072,18185,44867,17755,3883,44775,45517,18427,8753,5993,45043,44845,5410,28313,44865,44685,18237,24411,24412,18900,44884,6875,44768,4686,5259,44878,44835,13425,44848,28530,45262,44869,44866,17601,45051,45518,45421,13922,18279,37057,45229,17351,18286,18172,44671,44739)
Unknown column 'np.person' in 'where clause'