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 (19078,44851,13922,45180,13,37267,17237,18353,17601,44865,18900,45072,5259,39676,44687,22509,44745,44884,18996,5993,6862,18572,17009,44836,45177,44685,30135,17835,28530,14622,44531,45042,44861,8753,18688,16935,17092,44875,31354,6609,18794,45346,45262,24438,44640,37057,18427,44878,17848,44853,18430,44669,17703,18981,44764,17527,44868,44849,16885,44856,18042,17839,18650,18279,18648,44739,19057,18894,44711,3883)
Unknown column 'np.person' in 'where clause'