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 (45180,22509,5388,5410,44867,44865,19057,18042,5259,17981,44870,17601,44868,17703,3,16885,44640,4765,36472,45516,44767,17237,18981,6782,44669,44845,14402,45346,6609,5993,19078,44766,17848,18279,18719,28530,18648,44855,18894,14622,24412,44861,24411,17657,44687,44875,31354,44894,44674,44689,18652,44863,18286,44869,45043,45515,28313,44848,4686,44768,17492,44745,16935,44853,44851,44836,17092,44762,30986,18688)
Unknown column 'np.person' in 'where clause'