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 (10402,3883,32454,45421,18301,44775,17981,34194,19078,18427,6862,17351,44765,18042,44640,39676,44849,45177,45286,18900,44745,17114,45516,37267,44685,44870,44855,18279,17237,44687,44768,44835,44689,18572,37057,44762,44866,44767,13,13988,17657,45262,17848,17839,18650,18996,44853,44868,44865,44669,45180,17755,13922,30135,44531,31354,28530,3,44739,18794,9341,17756,44856,17492,6875,16935,5410,24438,17771,5259)
Unknown column 'np.person' in 'where clause'