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 (17092,22509,17601,44858,45515,18172,17981,4765,44878,44870,17556,37267,18996,44765,17848,44854,18719,44764,6875,18894,44531,18042,44837,18900,13,44766,44685,13922,18648,44845,44848,4686,45262,3,18572,44851,44689,45517,17771,44687,43800,45180,24438,45072,45567,14622,45516,44640,44865,18237,44861,17009,17114,18286,16935,18652,14402,5259,44674,17335,8753,44836,28313,10402,17527,17703,44762,18981,44869,6782)
Unknown column 'np.person' in 'where clause'