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 (17771,44894,45346,18185,17278,17848,16885,44835,44674,45286,30963,45561,44764,18688,17839,17092,44861,44837,45072,4686,44863,37057,18286,28530,45421,45515,3,14402,44853,17756,44762,44870,6609,30986,44875,17335,44767,44745,44845,24438,17904,45518,44848,18237,18648,44685,44865,18900,5388,13922,44531,24412,17657,17703,44849,13,17835,18996,34194,37267,17556,44855,45042,17601,4765,24411,17527,45517,17981,44884)
Unknown column 'np.person' in 'where clause'