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 (24438,18894,17556,18279,18981,5993,44745,44853,18688,17237,18430,17335,8753,44868,44762,44739,44849,44894,44835,44848,44870,17839,18650,9341,44884,13922,18648,44531,45561,43800,44669,44671,3883,18172,44640,37267,18794,18427,44869,3,45515,14622,32454,44689,45051,45518,44768,5388,44837,45567,44766,44845,44856,37057,30963,45421,17904,34194,17981,17657,44867,39676,18996,6862,16935,18042,45277,44764,18446,44687)
Unknown column 'np.person' in 'where clause'