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,10402,17114,17703,18900,44768,45043,44689,44878,18430,18172,4765,44848,9341,13425,44845,45518,39676,6875,44873,3883,44766,44711,19078,32454,5993,44851,44861,36472,28530,24411,44866,6782,44835,18185,44764,31354,34194,45567,6609,18688,18572,44865,45072,17278,44762,17601,22509,5388,45515,17527,13922,24438,17009,44765,44687,17771,45277,16935,18237,17839,17657,18648,44870,24441,44640,45561,17848,24412,44685)
Unknown column 'np.person' in 'where clause'