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 (13,44851,18286,18185,17756,18427,17601,44835,36472,45561,44762,44671,45515,14402,44849,44837,44764,17492,45286,44848,30963,22509,16935,44867,18446,45277,45516,44868,43800,44531,45051,17839,8753,17237,44878,5259,44884,44765,18237,3883,5410,44875,13425,4686,44687,17657,24411,6782,24412,13988,44745,44863,44775,44689,28530,44674,44836,44861,44853,45517,19078,17351,18719,24438,34194,18648,44865,45042,4765,45229)
Unknown column 'np.person' in 'where clause'