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 (24411,37267,44855,17839,18237,44873,17703,5410,45072,17278,44687,44875,16935,39676,44745,24441,6782,22509,45262,18981,44766,44856,45516,45346,14622,4686,9341,44775,18042,17527,17771,18650,18353,30986,18301,24412,18572,18688,32454,6862,16885,45561,17657,44739,17981,44685,44837,6609,45177,17335,44674,44671,44768,37057,13425,17351,17092,44845,17114,10402,45515,44767,18279,6875,44689,19057,45051,44870,24438,45518)
Unknown column 'np.person' in 'where clause'