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,44845,17756,24441,30135,18042,44868,18981,16885,18185,19057,44765,17527,45229,43800,17839,18652,45051,44849,17278,18996,44687,28530,18286,5410,18894,44764,5388,18650,45346,24438,13,18237,45567,44836,14622,45043,30986,14402,45561,18900,44640,44861,44858,39676,6609,44671,18353,17092,4765,44711,17009,18648,30963,44669,45421,44837,13922,18688,17351,19078,44870,44689,44854,44853,44867,6875,44863,44739,45286)
Unknown column 'np.person' in 'where clause'