Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, nx.id AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON nx.id = (SELECT ny.id FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE ny.id = nyc.news AND nyc.category = 310 AND nyp.person = np.person AND nyc.news = ny.id AND nyp.news = ny.id AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = p.id AND nc.category = 310 AND nc.news = np.news AND np.person = p.id AND p.id IN (31354,24441,44745,45516,18237,18894,17278,17335,17114,17848,18648,17009,18427,13988,16935,37057,24438,45515,5259,18185,44739,37267,44689,17556,44865,44767,45072,14402,44848,17703,18688,5388,44837,18996,18981,44851,17351,44671,10402,44531,18652,44849,44878,19078,18172,18042,18719,45561,45042,14622,5410,44775,44894,17657,18430,17981,18650,34194,44687,45229,44855,17755,44835,17771,45262,6782,44669,30963,43800,18286)
Unknown column 'np.person' in 'where clause'