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 (44856,36472,44685,19078,44845,44745,44884,45567,43800,4765,24412,18652,44863,9341,18042,37057,44870,44866,30986,17771,44849,18688,45180,17009,45072,44687,18446,44869,13988,18430,44878,17835,17756,17278,44768,17114,44531,16935,18648,45515,24411,16885,5388,45517,18894,44671,45277,17237,22509,45229,44711,5993,32454,17657,17527,3,6782,3883,6875,30963,44766,45516,14402,45177,45286,17351,44836,17839,13,6609)
Unknown column 'np.person' in 'where clause'