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 (18446,44884,17351,6875,44845,16935,18172,45277,18430,44739,3,17527,43800,17335,45286,45518,17848,19078,45043,18237,16885,45567,44531,30135,17601,44851,19057,18301,13,14402,45262,45561,24412,17981,45515,37057,44775,44766,4765,44768,5259,45042,44685,17657,34194,14622,18996,45346,44863,17703,13425,44855,18648,24411,44849,44861,22509,24441,44853,18286,44674,17835,18719,44837,3883,45072,44689,17114,44640,10402)
Unknown column 'np.person' in 'where clause'