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 (18185,45072,45561,44863,17092,13,44640,18172,6782,24412,17009,13425,17839,18981,45277,17835,44835,18430,44531,45516,44894,44739,45180,45042,18719,45043,45051,17981,45421,10402,3883,44685,44845,30963,44766,30135,13922,44868,17601,18996,44762,19057,44768,18237,44851,17657,45518,18894,45286,44669,18572,18279,17114,44745,6862,18301,17755,8753,18427,31354,5410,36472,17556,14622,18900,18648,3,16935,18688,44867)
Unknown column 'np.person' in 'where clause'