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 (5993,18237,30986,44875,45515,17601,13988,22509,44835,44768,17009,44878,45346,44853,19078,45421,18900,44640,45229,17556,17755,9341,45072,4765,18279,18794,44669,37267,44855,17756,24438,45042,44851,44739,28313,16885,44866,17848,45051,13425,17839,44762,37057,39676,44856,24412,36472,44685,3,18042,44531,44671,17771,44894,14402,44711,18172,18652,18981,44865,44765,17114,44873,44870,44674,44767,44869,6862,18353,17527)
Unknown column 'np.person' in 'where clause'