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 (18237,44868,44856,18301,16935,17114,13922,30963,18427,18446,18794,17492,44845,32454,18430,6782,5410,18650,3883,17771,30986,44764,6875,24412,18648,37057,44855,44531,44851,44854,18894,44866,13425,18286,44687,44863,43800,17839,17527,44849,10402,44671,6609,18900,44669,39676,44873,45262,44836,14622,5993,34194,45518,45561,44858,44739,45516,18719,36472,45051,17848,44870,44775,8753,45177,19057,19078,44875,44869,18172)
Unknown column 'np.person' in 'where clause'