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,45516,18981,44863,4765,17237,45072,44766,45346,3,18042,30986,18446,45421,24438,43800,18237,13922,17009,18996,44765,3883,44855,44835,18572,16885,44875,17601,17771,44858,18688,17351,6782,44861,18648,44764,44845,18719,17657,17278,44851,18427,18301,44687,5993,16935,17556,22509,44762,13425,39676,31354,17904,17492,17755,44849,17092,44836,17839,24412,44865,19057,6609,45051,45515,17335,44531,44745,45286,4686)
Unknown column 'np.person' in 'where clause'