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 (14622,24411,24441,18237,44669,44531,45561,17009,44671,17237,18427,6609,31354,44836,45043,5993,19057,45516,6862,30986,18042,18894,44854,18172,14402,44870,44855,17351,45262,18652,44858,45180,28530,45518,30963,18430,18650,10402,5410,24438,5388,18981,17114,45177,16885,17556,36472,3883,9341,5259,24412,44745,37057,44689,17601,28313,17848,44863,44766,44868,45277,39676,17527,18996,44865,44851,17771,44873,44875,17839)
Unknown column 'np.person' in 'where clause'