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 (17114,44768,24411,44845,44687,14402,44739,44866,5388,17755,18719,44762,45516,17601,17237,44674,18648,13922,44764,17756,45072,31354,34194,44848,13425,18172,17835,17904,19078,44867,24438,44894,18430,6862,44861,45561,13988,28530,17703,44767,44870,44878,44671,44858,30986,9341,8753,45180,6875,30135,4765,44685,24412,45177,45277,18996,37057,16885,45515,18688,45042,18650,44869,18794,32454,18894,16935,44765,18301,45262)
Unknown column 'np.person' in 'where clause'