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 (44873,45567,18353,6875,44894,17755,14622,45517,39676,16935,18446,30135,6862,17835,44884,17756,44875,17351,17492,44775,28530,45346,44851,17657,30963,18286,44711,44837,44867,18650,45518,17278,17771,28313,14402,44669,17601,44849,18688,17556,5993,18996,45051,18279,44768,17703,44671,44762,44689,18900,44854,17981,13,18652,13922,24412,44674,44870,19078,44745,45286,45515,45229,18794,18301,13425,18042,44865,16885,45043)
Unknown column 'np.person' in 'where clause'