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 (44764,17848,45346,37057,45421,6609,44856,44865,44745,44671,44640,17556,31354,45043,44711,30986,6782,44768,44869,18996,17114,18900,30135,17755,18279,18446,44884,44854,44878,45561,44685,43800,17009,45177,19078,17492,6862,28313,45042,44855,44762,34194,44845,13425,5388,30963,45517,44767,44765,44669,44531,44674,18237,44868,14622,18301,6875,44851,44836,24412,18353,9341,45518,17092,22509,44849,17904,18648,44875,24441)
Unknown column 'np.person' in 'where clause'