Grab just the recipe you want by adding a WHERE clause on either recipe name or id. The comma-separated bit I would probably do at the application level, but MySQL does have a group_concat function that you can use with group by to return results with comma-separated values