Read up a bit on sprintf as your syntax was wrong for one. The correct syntax would be:
$query_Recordset1 = sprintf("SELECT * FROM card_schedule WHERE id = '%s' AND customers_id=%s LIMIT 1", $id, $_SESSION['customers_id']);
Also, just saying, "I get errors." without posting errors on these forums is a bit of a faux pax. If you really need the help, you need to post the important details. Could you resolve a vague error without an error message?