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 (18900,44685,5993,45421,17703,13922,28530,18279,44835,45277,18446,24412,9341,30963,6609,44767,44766,45177,5388,17981,30986,18430,44873,5259,14402,44768,18719,18648,18427,44674,44884,44858,17114,44711,18301,17492,18572,18042,18794,44894,44868,45229,3,44875,44739,44745,44878,13,45180,44845,44848,18172,45567,37267,18286,44764,45286,37057,18688,44531,32454,44762,10402,4765,17351,44837,13425,3883,44855,5410)
Unknown column 'np.person' in 'where clause'