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 (18572,44764,17601,45277,9341,44836,17492,16885,44867,44870,44640,17904,5410,17114,45567,45515,44855,44689,44687,18650,18719,17703,44768,30963,6875,44878,16935,17527,18172,44851,18894,45286,44669,18353,45346,44863,18427,44875,44711,44531,44835,3883,17839,18286,24412,13425,18996,44884,44765,45517,44894,18648,19057,14622,18237,45229,24438,17009,18900,44869,28313,14402,4765,5388,44858,13922,44739,6862,5259,18301)
Unknown column 'np.person' in 'where clause'