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 (34194,17756,18353,18650,18430,43800,45180,45229,44711,18648,44875,24438,14402,44853,17981,30963,18688,17556,44870,18286,44669,17839,44836,17492,24441,31354,44835,28530,44868,17009,6782,44768,4765,18301,44689,18237,17335,19057,44745,5410,44766,18652,18185,44671,24412,18279,3883,8753,45177,44854,45043,44865,18042,44851,17601,44739,37057,44765,45518,17835,17237,45421,45561,16935,5259,6875,44674,18719,44855,28313)
Unknown column 'np.person' in 'where clause'