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 (10402,18650,45346,4686,36472,17237,18042,44837,44851,44848,5259,17278,44849,18719,24411,18894,44836,44854,44768,44766,30963,18794,44775,18900,6782,44685,24412,45072,44767,44855,45051,3883,44762,44856,44845,31354,37057,45561,3,44861,44739,14402,45518,44765,45177,8753,17351,13,44884,17527,18301,44865,18446,18430,6862,17703,44640,34194,24438,45277,37267,17755,44674,28530,24441,17492,17092,45286,44853,45180)
Unknown column 'np.person' in 'where clause'