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 (18301,45517,18688,45515,44870,37267,18172,30963,17835,17092,44848,18572,44875,4686,17009,44689,45177,17755,18279,19057,45561,13,32454,6875,44856,44878,44884,31354,44868,17556,18237,17601,44685,22509,5410,3883,45421,30986,45518,17657,44745,44851,45072,10402,44767,18894,24441,17756,44855,18353,44775,44861,44739,44854,6862,5388,5993,24438,17771,17492,45516,44836,17527,45567,18430,17703,44768,18650,34194,44849)
Unknown column 'np.person' in 'where clause'