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 (17556,13988,18894,44765,13,17278,44894,44687,44674,13425,17771,44869,6875,18286,44866,45229,17904,44837,44878,16935,4765,18900,44856,44689,18688,45277,37057,44855,36472,16885,30986,18301,18353,19078,14402,44853,17839,44875,44669,44775,18650,17981,8753,44848,44762,44766,13922,45567,44745,45516,44739,24438,30135,32454,44865,17351,34194,39676,5410,45561,18279,17601,45042,45051,18042,44873,22509,18981,17092,18427)
Unknown column 'np.person' in 'where clause'