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 (19078,32454,18353,45042,14622,31354,44869,44837,44870,6782,44775,16935,18237,14402,45421,18688,17848,3883,24441,44687,18719,18900,30963,44851,24438,17839,17351,17237,45229,18650,44768,44866,44671,17335,17092,18185,36472,16885,17835,13,17703,44875,19057,17556,45346,9341,30986,13922,8753,45515,17771,44884,10402,13988,17492,44845,45518,18996,44531,45561,44669,45277,44745,44853,37057,44689,44863,6875,39676,6862)
Unknown column 'np.person' in 'where clause'