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 (17492,19078,45180,36472,44869,44745,18301,17755,44689,18650,18652,17703,39676,45346,6875,13,18279,18427,44858,18286,44849,30963,44531,44835,18237,22509,17904,44878,17835,17601,24411,44685,5388,9341,17839,6782,44875,44853,16885,24438,28313,44768,19057,44765,17556,44870,44640,44863,45518,18900,44671,44711,30135,3883,18185,6862,45042,18446,5410,5259,44867,13922,44836,18996,17657,45515,45043,18794,17771,17351)
Unknown column 'np.person' in 'where clause'