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 (30963,45517,34194,45561,18572,18719,44868,44853,13425,18981,17839,44894,24411,4686,17657,16935,17114,44689,17278,45180,14402,44873,45286,44861,44739,18900,17835,44775,6875,45567,3,17771,17009,45421,44768,9341,44865,18279,30986,28313,45229,22509,5410,17848,18650,43800,45043,44866,45277,19078,36472,44765,44835,24412,17492,44875,17904,44884,44845,45262,44764,44836,18446,18353,45051,18237,17756,17981,44687,14622)
Unknown column 'np.person' in 'where clause'