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 (45516,45051,17278,19078,44671,22509,5993,13,45277,18301,17092,17009,44849,44861,13922,30986,44865,24412,6782,37057,18894,17981,18996,45177,45517,5388,17556,44640,44866,6875,44854,17756,18172,4686,18446,17904,3883,19057,16935,28313,18042,44867,44768,36472,44870,44689,18353,28530,14402,37267,18572,17839,17771,17492,24411,17114,44855,44531,44837,18237,44766,17601,44894,5259,44765,44762,18794,44856,18981,43800)
Unknown column 'np.person' in 'where clause'