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 (8753,18794,44867,39676,3883,45072,45346,17351,44873,17771,45277,44866,45051,10402,36472,44878,44764,44865,17278,4765,31354,17527,18446,5388,18996,44669,44855,6782,6609,45517,17904,18172,18900,24411,5993,44845,5259,45421,44739,44768,6862,14622,18286,9341,28530,44762,18719,44894,6875,18237,18688,19057,44836,44531,17657,17492,18648,45518,45567,44687,18572,14402,44685,28313,44861,16885,44835,17556,17848,44875)
Unknown column 'np.person' in 'where clause'