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 (45277,44863,44875,44853,37267,14622,44836,18894,44837,18301,45515,44835,45421,6875,44745,44873,18286,17703,17835,44531,17904,18648,44849,44878,44766,17335,44765,44671,9341,13922,17657,17601,18353,18237,45177,44711,17848,44845,18572,44767,43800,18172,17756,44848,17009,31354,17771,5388,45518,13988,18652,45561,44868,24412,16935,22509,45229,34194,44775,4686,28530,5410,44884,28313,44854,6862,6782,44685,17556,13)
Unknown column 'np.person' in 'where clause'