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 (44768,17237,17657,44870,28530,44878,37057,17835,45286,28313,6875,18719,44739,24438,14402,4765,44836,8753,18237,45229,44711,14622,45346,44640,17839,17009,44762,44863,44848,18353,45043,18172,3883,6862,24411,45072,13988,45042,44866,18688,18279,44775,18427,5388,44856,5259,5410,17527,18286,45277,45517,36472,39676,18042,44671,18650,17556,44894,44765,44669,13922,32454,44869,45262,44851,18794,31354,16885,45177,18648)
Unknown column 'np.person' in 'where clause'