Syntax for SQL Select with where.
SELECT column_name(s)
FROM table_name
WHERE column_name operator value;
//your query should be like below
select * from [dp] where email = session;
follow the link to learn more basics...
http://www.w3schools.com/sql/sql_where.asp[
^]
mark as answer if solves your problem, it motivates :)