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 (44685,17556,45042,44671,9341,14622,5993,45286,45567,44711,45262,45177,45277,17756,10402,37057,44640,31354,18279,32454,8753,14402,19057,45561,44875,44848,44855,6862,3,18172,44866,44845,17981,45051,44868,17657,44835,17335,44851,45421,44775,44739,18237,13425,16935,37267,44762,45517,45229,44870,18794,5388,17092,44768,28530,17755,44894,16885,17839,17703,17835,45346,44865,30986,18900,24411,18981,44869,18427,44853)
Unknown column 'np.person' in 'where clause'