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 (44853,17092,13,34194,30986,44878,5388,17839,44671,44849,44873,44848,44766,18172,14402,44861,17848,44762,44845,17114,44711,44884,44669,18652,17556,17755,28313,6862,18688,44687,5259,18279,44531,45346,18894,18353,44640,44674,44835,17009,17527,13425,3,44865,17771,30135,13988,44870,24411,18237,45043,22509,45561,44739,39676,45421,45072,44851,6782,19078,44858,18572,17835,44875,17657,18446,44856,37267,18648,5993)
Unknown column 'np.person' in 'where clause'