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 (5993,30963,18900,19057,17335,44884,45518,44739,6862,4765,30135,44640,44863,18237,44775,45286,44745,44768,45229,5388,44869,44856,44868,44685,45346,18981,17848,5259,31354,18894,14622,44762,44849,44894,44865,44689,4686,3883,18719,13,17114,17237,28530,17756,44854,44669,18279,18572,28313,18427,45567,44671,45515,44767,44861,3,18652,44858,17657,44531,45262,14402,18688,18042,18286,17771,16935,24438,22509,45177)
Unknown column 'np.person' in 'where clause'