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 (28313,19057,44531,44764,13988,17756,5993,30963,44856,45516,44845,18301,30986,44669,44865,17278,18427,10402,14622,17848,44861,45277,17657,32454,17492,31354,14402,24441,44711,13425,45042,18572,18430,44837,44878,13922,44768,44853,36472,17092,17601,16935,17351,22509,18650,9341,43800,44762,18279,44739,44868,13,44745,17703,17527,19078,44687,6862,44775,44863,17114,30135,16885,17556,6782,44866,24412,44851,17771,34194)
Unknown column 'np.person' in 'where clause'