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 (39676,13425,17657,30963,32454,17755,18996,44835,45286,18981,24411,18572,44531,44865,18900,6609,24412,6862,44689,44674,28313,45567,17556,44687,44669,22509,44869,16935,18430,45516,13,45277,17703,28530,18794,44870,18237,9341,44762,5993,3883,17335,24441,44848,44640,14402,31354,44775,17601,6782,17278,44894,44745,45180,4686,45042,44768,18279,19078,44868,17009,45517,17492,44855,44856,30135,16885,44853,44878,18446)
Unknown column 'np.person' in 'where clause'