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 (18446,5259,18185,44866,24411,44764,17492,34194,44869,18353,18172,17904,13425,44669,28313,45177,17755,44762,17848,44689,18996,44855,13922,44835,44687,24441,45042,18572,44868,44775,10402,44863,17771,45180,18652,17237,44853,44531,17556,44739,24412,13,45561,6875,17009,44768,17703,17278,18042,45567,44671,44878,45262,44674,16885,18981,44848,19078,44767,45286,18237,14402,17092,44640,19057,17114,43800,28530,13988,6862)
Unknown column 'np.person' in 'where clause'