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 (5388,44848,19078,43800,44768,28313,3883,44835,17492,17009,19057,18237,16885,44767,17527,18446,18688,17981,44836,18981,17703,44775,17237,13988,44671,44640,44745,18279,44858,18286,17114,18042,14402,28530,44867,45517,44856,13922,30135,18427,31354,44878,44868,18172,45567,32454,45177,18430,10402,17657,45286,44837,4765,17601,9341,44875,44894,44854,18996,17278,44861,17848,44853,44845,44674,18894,44739,17839,6782,22509)
Unknown column 'np.person' in 'where clause'