Trying to pull the last 50 entries from my DB and then run another select on that query. Essentially I want to see if your name is in the last 50 entries of the DB.
I don't think this needs a join but I'm not really too experienced with anything more then basic sql queries.
This is what I have
mysqli_query($test_db, "SELECT * from r2 order by idp desc limit 50
(select * where name = '$name')");
I've also tried using AND in a query something like this
SELECT * from r2 order by idp desc limit 50 and where name = '$name'