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 (45567,17492,17755,17839,45042,18719,16885,31354,44685,22509,44837,17835,44848,6782,45516,44689,18446,44767,17771,5388,44878,43800,17527,8753,6862,18301,24412,18353,44765,6609,18688,44640,17092,44861,3883,44875,44854,17848,17114,44745,45177,37267,44873,18572,44867,3,45286,5259,5993,18648,9341,44865,17009,18237,44687,44764,4686,30135,45515,13922,44869,19057,16935,4765,6875,44884,44768,44856,45072,45262)
Unknown column 'np.person' in 'where clause'