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 (14402,18900,17009,44848,45177,44762,4765,17527,18996,18446,45561,8753,44669,44863,44836,17771,45072,17351,44870,18648,16885,28313,18430,44867,30986,18981,30963,18572,45262,24412,44689,44851,44711,39676,44845,45051,17835,37267,44856,44685,44894,44768,19057,45229,45567,5388,14622,44767,19078,24441,44835,13425,13,17335,17756,10402,44687,44766,18650,17904,18042,24411,18172,13988,18353,18427,34194,45515,45517,44739)
Unknown column 'np.person' in 'where clause'