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 (13922,44762,45518,17092,17556,18446,5388,18996,17755,3,17278,17237,44854,18652,28530,13988,19078,44836,24411,17601,44764,17771,5259,17703,18353,45262,44835,44687,44768,45286,24412,44884,44856,45421,44671,44865,18185,17848,5993,6782,28313,17114,34194,16935,45517,18794,44851,18237,44674,30986,6862,18301,32454,18648,18572,45177,44711,17351,44849,17657,44669,3883,44894,44765,18427,45561,18900,44848,5410,45515)
Unknown column 'np.person' in 'where clause'