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 (18648,44836,30135,16885,13425,17556,44775,18042,10402,17092,44762,44687,45346,17278,45561,17009,44873,18430,17114,45051,30963,17237,17657,17771,45042,45072,37057,44858,36472,44531,44866,17492,5388,44856,44674,45277,9341,44853,18794,45262,44685,17848,6875,17904,17351,13988,44669,17527,5259,44861,19078,31354,44766,18981,24411,17839,13,5410,44870,18237,18719,24438,18894,18900,44845,37267,44855,44711,22509,28313)
Unknown column 'np.person' in 'where clause'