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 (32454,44853,44764,18042,18286,44858,13988,45518,17756,45262,18430,44685,17237,31354,5993,39676,24441,14402,44851,17492,24412,17703,44640,44848,18688,24438,5388,45517,34194,37267,16935,44855,18237,17114,44775,44878,17848,18572,44671,28530,18648,44866,30963,13,19057,44687,8753,44870,18900,22509,44845,44765,44884,17839,44768,44867,45229,17601,44875,18981,24411,37057,30135,6875,44837,13425,28313,45346,44739,18652)
Unknown column 'np.person' in 'where clause'