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 (17839,45180,17092,18894,44745,17848,18446,44767,44845,45421,44866,45072,17981,44884,44861,24411,45043,37267,34194,18981,44531,44878,44766,44836,18279,30986,19057,28313,17114,45051,37057,45515,44739,14622,18794,18719,13,19078,6862,44875,44835,44870,18900,44853,44640,10402,17835,45042,8753,30135,13988,17492,44858,44685,3,9341,45286,18572,17556,18688,44674,16885,44669,24412,44765,17755,17278,17527,17771,44687)
Unknown column 'np.person' in 'where clause'