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 (17601,3,45229,6862,44851,18427,18688,4765,44858,44873,44869,44689,17835,44669,17335,45072,17703,24412,17009,44835,45262,45567,5388,6609,44837,44855,44687,44764,17556,44894,18794,10402,18650,6875,13425,44861,44870,13988,14402,16935,5993,17771,44878,24438,44739,39676,44767,28530,13922,45177,5259,17492,45518,4686,44875,44711,18353,44863,43800,18572,17114,44854,36472,45043,18981,44671,44848,24411,17092,5410)
Unknown column 'np.person' in 'where clause'