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 (45421,18353,17114,4765,19078,44865,17755,6782,45518,45043,44745,18894,14622,24411,45277,18572,9341,3883,18688,45262,28313,16935,44711,4686,44762,17009,44845,22509,43800,45567,44878,14402,17771,44689,44766,44775,45072,44851,17703,6875,44687,17351,44835,44870,18301,44858,44640,18286,18650,13988,17278,44861,45051,17657,34194,18446,44765,18648,18427,13922,17981,37267,5388,39676,44868,44894,45517,17556,45561,18430)
Unknown column 'np.person' in 'where clause'