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 (6875,5993,17556,44866,28530,17527,17351,19057,16885,14622,17601,6609,44849,44765,44868,44851,44855,17092,44845,17657,18894,44858,44865,5410,13922,24438,18237,4765,6782,45277,45286,24441,17703,16935,18446,24412,18301,5388,44856,17835,44669,17839,45516,44689,30135,18900,17237,17492,44836,45043,34194,18286,44854,5259,17009,17114,44739,45180,44768,18427,45518,44671,13988,30986,17848,44878,18719,18185,22509,45561)
Unknown column 'np.person' in 'where clause'