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 (44767,18237,18430,44766,6782,44745,44878,18996,44835,13922,44837,44739,17601,44863,4686,17981,17335,37057,17839,44870,45567,17351,32454,44671,17492,18042,22509,17835,18719,44894,3883,30986,17657,44875,5993,16935,17092,44851,17904,45518,44856,45043,44674,44836,17237,44853,28313,17556,45346,43800,44855,45177,4765,44849,5388,45229,13988,45286,14622,17755,45072,45516,18652,14402,18648,30135,45421,19057,3,44868)
Unknown column 'np.person' in 'where clause'