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 (18648,34194,17848,17556,6862,17492,17755,17009,44836,18042,17756,44765,44849,45421,18172,14622,13988,17351,44868,43800,18353,44875,18688,17601,24412,44685,45051,18446,13,44894,45517,37057,44865,8753,44745,44855,10402,3883,44861,30135,17114,18894,44764,18185,18279,28530,4765,16935,45518,44671,44669,44856,6782,45346,4686,17237,19078,44766,44674,45286,18650,44884,5993,17835,44848,13922,3,22509,30963,36472)
Unknown column 'np.person' in 'where clause'