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,17556,18279,44739,5993,13988,17981,6782,18894,45517,44531,18172,44866,44873,5388,17492,44671,44674,30963,44836,44766,13922,45518,9341,17092,30986,45277,44685,18794,3883,45346,16935,18301,17114,18719,44875,18353,17278,6862,44868,18185,43800,44855,17703,18427,44849,45177,17351,45072,44867,18430,17771,16885,45229,19057,32454,18286,45262,6875,44869,19078,14622,18900,18446,44865,44762,44745,24441,4686,18648)
Unknown column 'np.person' in 'where clause'