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 (44845,16935,30135,18353,17556,44873,28313,44669,17848,18794,30986,13988,44856,44767,44765,44867,45229,17009,44762,32454,4765,45042,10402,17771,17703,17904,44837,44739,5993,44866,3883,13,44640,44848,17755,44745,24438,44855,6875,8753,44836,45515,18688,6782,18430,13922,44835,39676,44764,17981,45262,44711,24441,44878,44768,37267,44685,43800,44674,19057,18185,45567,45043,18719,37057,18894,18237,44884,17527,17835)
Unknown column 'np.person' in 'where clause'